blob: a8e005e24b541d35a5d9f615ccd07d43ec732e4a [file] [log] [blame]
Vinay Vishal7c4c4fc2019-01-28 12:01:04 +05301type=page
2status=published
3title=delete-cluster
4next=delete-config.html
5prev=delete-auth-realm.html
6~~~~~~
7delete-cluster
8==============
9
10[[delete-cluster-1]][[GSRFM00068]][[delete-cluster]]
11
12delete-cluster
13--------------
14
15deletes a \{product---name} cluster
16
17[[sthref609]]
18
19Synopsis
20
21[source,oac_no_warn]
22----
23asadmin [asadmin-options] delete-cluster [--help]
24[--autohadboverride={true|false}] [--node-agent=node-agent--name]
25cluster-name
26----
27
28[[sthref610]]
29
30Description
31
32The `delete-cluster` subcommand deletes a \{product---name} cluster. A
33cluster can be deleted only if the cluster contains no \{product---name}
34instances. If a cluster that you are deleting contains any instances,
35stop and delete the instances before deleting the cluster.
36
37If the cluster's named configuration was created automatically for the
38cluster and no other clusters or unclustered instances refer to the
39configuration, the configuration is deleted when the cluster is deleted.
40A configuration that is created automatically for a cluster is named
41cluster-name`-config`, where cluster-name is the name of the cluster.
42
43This command is supported in remote mode only.
44
45[[sthref611]]
46
47Options
48
49asadmin-options::
50 Options for the `asadmin` utility. For information about these
51 options, see the link:asadmin.html#asadmin-1m[`asadmin`(1M)] help page.
52`--help`::
53`-?`::
54 Displays the help text for the subcommand.
55`--autohadboverride`::
56 Do not specify this option. This option is retained for compatibility
57 with earlier releases. If you specify this option, a syntax error does
58 not occur. Instead, the subcommand runs successfully and displays a
59 warning message that the option is ignored.
60`--nodeagent`::
61 Do not specify this option. This option is retained for compatibility
62 with earlier releases. If you specify this option, a syntax error does
63 not occur. Instead, the subcommand runs successfully and displays a
64 warning message that the option is ignored.
65
66[[sthref612]]
67
68Operands
69
70cluster-name::
71 The name of the cluster to delete.
72
73[[sthref613]]
74
75Examples
76
77[[GSRFM535]][[sthref614]]
78
79Example 1   Deleting a \{product---name} Cluster
80
81This example deletes the \{product---name} cluster `adccluster`.
82
83[source,oac_no_warn]
84----
85asadmin> delete-cluster adccluster
86Command delete-cluster executed successfully.
87----
88
89[[sthref615]]
90
91Exit Status
92
930::
94 command executed successfully
951::
96 error in executing the command
97
98[[sthref616]]
99
100See Also
101
102link:asadmin.html#asadmin-1m[`asadmin`(1M)]
103
104link:create-cluster.html#create-cluster-1[`create-cluster`(1)],
105link:delete-instance.html#delete-instance-1[`delete-instance`(1)],
106link:delete-local-instance.html#delete-local-instance-1[`delete-local-instance`(1)],
107link:list-clusters.html#list-clusters-1[`list-clusters`(1)],
108link:start-cluster.html#start-cluster-1[`start-cluster`(1)],
109link:stop-instance.html#stop-instance-1[`stop-instance`(1)],
110link:stop-local-instance.html#stop-local-instance-1[`stop-local-instance`(1)],
111link:stop-cluster.html#stop-cluster-1[`stop-cluster`(1)]
112
113