My recommendation as cross-posted on Matrix:
Just look up a script for each of the services you want to purge. There are tons of them floating around on the internet.
For example: