I’m using Trellis and Bedrock to provision and deploy WordPress websites, and so far it works out great. I’m wondering about one thing though. How do I keep my Digital Ocean droplet clean?
Flow
Add website example.com and its credentials to wordpress_sites.yml and vault.yml
Provision server and deploy website
Remove example.com and its credentials from wordpress_sites.yml and vault.yml
Re-provision server (without example.com credentials)
Now, when I SSH into my server I can still see the nginx configuration files in /etc/nginx/sites-available, the folders in /srv/www/example.com and the database of example.com. Is it weird I expected to see these files removed? If not, how can or should I clean these files up?