GoAdmio Command Line: delete with /go/delete

/go/delete removes a hosting account from the server in one command. It deletes: Before deleting anything it takes a snapshot, so the account can be restored with recover. –force skips that step. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Delete an account (a snapshot is taken first)
/go/delete example.com

Arguments

Argument Required Notes
<domain> Yes The account’s domain, exactly as stored. Unlike create, delete does not lowercase it or remove a leading www..
--force No Skips the snapshot, and the recovery hint at the end. The account cannot be recovered. It is recognized anywhere in the arguments.

Examples

# Normal deletion, recoverable
/go/delete example.com

# Delete without a snapshot (not recoverable)
/go/delete example.com --force

# Restore a deleted account from its snapshot
/go/recover example.com

# Reload the web server and PHP-FPM afterward
/go/reload

Output

Preparing to delete example.com...
Deleting files...
Dropping MySQL/MariaDB database example_db...
Dropping PostgreSQL database example_pg...
Domain example.com has been deleted.

The example is illustrative. The Dropping lines appear only for databases the account owns.

Message Meaning
Preparing to delete <domain>... The snapshot is being taken. Not shown with --force.
Deleting files... Deletion has started.
Dropping MySQL/MariaDB database <name>... A MySQL/MariaDB database is being dropped.
Dropping PostgreSQL database <name>... A PostgreSQL database is being dropped.
Domain <domain> has been deleted. The run finished.
Domain <domain> not exists The domain is not in the GoAdmio database and has no /home/<domain>/www folder. Exit status 1.
Unknown operating system. The OS is not supported. See Troubleshooting.

After a deletion without --force, if you ran the command in a terminal and /var/go/etc/snapshot.conf exists, a boxed note shows how to recover the account:

Info: Domain Deletion Recovery
If you deleted a domain example.com by mistake, you can recover it with:
/go/recover example.com

See the full reference at /go/delete and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *