Skip to content

Instantly share code, notes, and snippets.

@zc640618
zc640618 / vm-clean-up.sh
Created October 21, 2017 13:43 — forked from mortn/vm-clean-up.sh
VM Clean Up (cleaning up Debian based system for use as template)
#!/bin/bash
# Clean up Apt
apt-get autoremove
apt-get autoclean
apt-get clean
# Delete SaltStack minion keys and ID file
# New files are generated when the service starts
rm -vf /etc/salt/pki/minion/*