Vinay Vishal | 7c4c4fc | 2019-01-28 12:01:04 +0530 | [diff] [blame] | 1 | type=page |
| 2 | status=published |
| 3 | title=delete-cluster |
| 4 | next=delete-config.html |
| 5 | prev=delete-auth-realm.html |
| 6 | ~~~~~~ |
| 7 | delete-cluster |
| 8 | ============== |
| 9 | |
| 10 | [[delete-cluster-1]][[GSRFM00068]][[delete-cluster]] |
| 11 | |
| 12 | delete-cluster |
| 13 | -------------- |
| 14 | |
| 15 | deletes a \{product---name} cluster |
| 16 | |
| 17 | [[sthref609]] |
| 18 | |
| 19 | Synopsis |
| 20 | |
| 21 | [source,oac_no_warn] |
| 22 | ---- |
| 23 | asadmin [asadmin-options] delete-cluster [--help] |
| 24 | [--autohadboverride={true|false}] [--node-agent=node-agent--name] |
| 25 | cluster-name |
| 26 | ---- |
| 27 | |
| 28 | [[sthref610]] |
| 29 | |
| 30 | Description |
| 31 | |
| 32 | The `delete-cluster` subcommand deletes a \{product---name} cluster. A |
| 33 | cluster can be deleted only if the cluster contains no \{product---name} |
| 34 | instances. If a cluster that you are deleting contains any instances, |
| 35 | stop and delete the instances before deleting the cluster. |
| 36 | |
| 37 | If the cluster's named configuration was created automatically for the |
| 38 | cluster and no other clusters or unclustered instances refer to the |
| 39 | configuration, the configuration is deleted when the cluster is deleted. |
| 40 | A configuration that is created automatically for a cluster is named |
| 41 | cluster-name`-config`, where cluster-name is the name of the cluster. |
| 42 | |
| 43 | This command is supported in remote mode only. |
| 44 | |
| 45 | [[sthref611]] |
| 46 | |
| 47 | Options |
| 48 | |
| 49 | asadmin-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 | |
| 68 | Operands |
| 69 | |
| 70 | cluster-name:: |
| 71 | The name of the cluster to delete. |
| 72 | |
| 73 | [[sthref613]] |
| 74 | |
| 75 | Examples |
| 76 | |
| 77 | [[GSRFM535]][[sthref614]] |
| 78 | |
| 79 | Example 1 Deleting a \{product---name} Cluster |
| 80 | |
| 81 | This example deletes the \{product---name} cluster `adccluster`. |
| 82 | |
| 83 | [source,oac_no_warn] |
| 84 | ---- |
| 85 | asadmin> delete-cluster adccluster |
| 86 | Command delete-cluster executed successfully. |
| 87 | ---- |
| 88 | |
| 89 | [[sthref615]] |
| 90 | |
| 91 | Exit Status |
| 92 | |
| 93 | 0:: |
| 94 | command executed successfully |
| 95 | 1:: |
| 96 | error in executing the command |
| 97 | |
| 98 | [[sthref616]] |
| 99 | |
| 100 | See Also |
| 101 | |
| 102 | link:asadmin.html#asadmin-1m[`asadmin`(1M)] |
| 103 | |
| 104 | link:create-cluster.html#create-cluster-1[`create-cluster`(1)], |
| 105 | link:delete-instance.html#delete-instance-1[`delete-instance`(1)], |
| 106 | link:delete-local-instance.html#delete-local-instance-1[`delete-local-instance`(1)], |
| 107 | link:list-clusters.html#list-clusters-1[`list-clusters`(1)], |
| 108 | link:start-cluster.html#start-cluster-1[`start-cluster`(1)], |
| 109 | link:stop-instance.html#stop-instance-1[`stop-instance`(1)], |
| 110 | link:stop-local-instance.html#stop-local-instance-1[`stop-local-instance`(1)], |
| 111 | link:stop-cluster.html#stop-cluster-1[`stop-cluster`(1)] |
| 112 | |
| 113 | |