2 Answers
- Newest
- Most votes
- Most comments
1
Any reason why you can’t create a new instance so it’s fresh and terminate the old one?
0
Hello
Assuming this instance needs to be publicly accessible and is configured without a load balancer or an elastic IP. I don't believe that there is a straightforward way to achieve a clean installation state. However, I would recommend the following
- Uninstall all the software using apt purge
- Use apt autoremove to remove any unused package
- Remove any user directories/log files
- If ssh multiple SSH keys are configured, remove the keys from authorized_hosts
Hope this helps.
answered a year ago
Relevant content
- asked 2 years ago
- asked 4 years ago
- Accepted Answerasked 4 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 months ago