delete-database

Deletes one database To remove a single database from a virtual server and delete all of its contents, you can use this command. It takes the exact same parameters as the create-database command like --domain, --name and --type. Be careful using it, as the complete contents of the specified database will be removed without any prompting for confirmation. Command line help virtualmin delete-database --domain domain.name --name database-name --type mysql|postgres

Deletes one database#

To remove a single database from a virtual server and delete all of its contents, you can use this command. It takes the exact same parameters as the create-database command like --domain, --name and --type. Be careful using it, as the complete contents of the specified database will be removed without any prompting for confirmation.

Command line help#

virtualmin delete-database --domain domain.name
 --name database-name
 --type mysql|postgres

Source: https://www.virtualmin.com/docs/development/api-programs/delete-database/

  • virtualmin, domain, database, mysql, command line, delete
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...