Delete a server =============== A server is deleted either when a service is moving to a new server (:doc:`create the new server`, first), or when a service is being retired. As with other deployment tasks, do the :doc:`setup tasks` before the steps below. #. Notify relevant users of the change #. Remove all occurrences of the server's FQDN and IP address from this repository #. Remove the DNS entries using the server's FQDN from `GoDaddy `__ (A, AAAA, SPF) #. Remove the server's root password from `LastPass `__ #. Shutdown the server via the :ref:`host`'s interface If the service is being retired: #. Remove it from ``salt/prometheus/files/conf-prometheus.yml``, and :doc:`deploy` the Prometheus service #. Remove its configuration from this repository #. Remove its DNS entries from `GoDaddy `__ #. Remove its error monitor from `Sentry `__, if used #. Remove its web analytics from `Fathom Analytics `__, if used #. Remove its resources from Amazon Web Services, if used #. Remove its project from Google Cloud Platform, if used #. Archive its repository on `GitHub `__, if any #. Archive its row in the `Health of software products and services `__ spreadsheet Finally (wait two weeks to be sure files were migrated): #. Securely erase data: #. :ref:`Activate the recovery system` #. Connect to the server #. Open a session in :ref:`tmux`. Install ``tmux``, if needed: .. code-block:: bash apt install tmux #. Securely erase data from the relevant device(s), for example: .. code-block:: bash shred -z -n 1 -v /dev/sda #. Cancel the server via the :ref:`host`'s interface