Documentation Home
MySQL Cluster Manager 9.5 User Manual
Related Documentation Download this Manual
PDF (US Ltr) - 1.3Mb
PDF (A4) - 1.3Mb


5.2.7 Thedelete site Command

delete sitesite_name

Thedelete site command deletes an existing management site. The command does not stop or remove any agents making up the deleted site; instead, these agents continue to run, and remain available for use in other sites.

The command takes a single argument, the name of the site to be deleted. This example shows the deletion of a management site namedmysite:

mcm> delete site mysite;+---------------------------+| Command result            |+---------------------------+| Site deleted successfully |+---------------------------+1 row in set (0.38 sec)

If the site to be deleted does not exist, the command fails with the errorCommand requires a site to be defined. If there are any packages referencing hosts belonging to the site,delete site fails with the errorPackages exist in sitesite_name. The command also fails if there are defined any clusters that include hosts belonging to the site.

Note

The management client must be connected to a site in order to be able to delete it.

In addition, if you execute adelete site command with the--force option using one management agent while a different management agent is not running, you must remove themissing management agent's site files manually. For more information on site files, seeSection 3.4, “MySQL Cluster Manager Configuration File”.