Programster's Blog

Tutorials focusing on Linux, programming, and open-source

AcmePHP - Remove Domain

If you look at the output of your acmephp status and see some domains you really weren't there, you can remove them by simply removing a couple of files. The BASH script below will do this for you once you give it the domain you wish to remove. E.g. www.mysite.com.

#!/bin/bash
echo -n "Please enter the domain you wish to remove from acmephp: "
read DOMAIN
echo "Removing domain: $DOMAIN"

rm -rf $HOME/.acmephp/backup/certs/$DOMAIN
rm -rf $HOME/.acmephp/backup/private/$DOMAIN
rm -rf $HOME/.acmephp/master/certs/$DOMAIN
rm -rf $HOME/.acmephp/master/private/$DOMAIN
Last updated: 9th September 2018
First published: 9th September 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch