existing ubuntu ec2 instance that has data should look like new server, after deleting everything

0

my question is i have got an existing Ubuntu ec2 instance that has got DNS mapping and setup. I need to delete of all the installation with files and folders and make it look like a fresh server. so how can i approch it

preguntada hace un año215 visualizaciones
2 Respuestas
1

Any reason why you can’t create a new instance so it’s fresh and terminate the old one?

profile picture
EXPERTO
respondido hace un año
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

  1. Uninstall all the software using apt purge
  2. Use apt autoremove to remove any unused package
  3. Remove any user directories/log files
  4. If ssh multiple SSH keys are configured, remove the keys from authorized_hosts

Hope this helps.

profile picture
Bisina
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas