h1. {anchor:ACFEP} commadmin domain delete
The {{commadmin domain delete}} command marks a single hosted domain as deleted from the server. To mark multiple hosted domains as deleted, use the {{-i}} option.
When you mark a domain as deleted, all user and group entries in the domain are marked as deleted.
The [{{commadmin domain purge}}|#ACFEX] command will permanently remove the domain.
To disable Organization Administrators usage of a service like calendar service or mail service, use the {{-S}} option. Here {{S}} is in uppercase.
h2. {anchor:ACFEQ} Syntax
{panel}
{{commadmin domain delete –D _login_ –d _domain name_ –n _domain_ –w _password_}}
{{ [–h] [–?] [–i _inputfile_] [–p _AM port_] [–s] [–S _service_] [–v] [–V] [–X _AM host_]}}
{panel}
h2. {anchor:ACFER} Options
The following options are mandatory:
||Option ||Description ||
|{{-D}} _login_|The user ID of the Top-Level Administrator.|
|{{-d}} _domain name_|The DNS domain name that is being deleted. If {{-d}} is not specified, the domain specified by {{-n}} is used.|
|{{-n}} _domain_|The domain of the Top-Level Administrator.|
|{{-w}} _password_|The password of the Top-Level Administrator.|
The following options are non-mandatory:
||Option ||Description ||
|{{–h}}, {{–?}}|Prints command usage syntax.|
|{{-i}} _inputfile_|Reads the command information from a file instead of the command line.\\
\\An option value specified in the input file overrides any value for the same option set in the command line.|
|{{-p}} _AM port_|Specifies an alternate TCP port where the Access Manager is listening. If not specified, the default _AM port_ is used, or Port 80 is used if no default was configured during installation.|
|{{-s}}|Use SSL (Secure Socket Layer) to connect to the Access Manager.|
|{{-S}} _service_|Modifies the value of the specified service status attribute value to ”deleted’.\\
\\Multiple services are separated by a comma. The valid _service_ values are {{mail}}, and {{cal}} , and {{im}}_._ These values are case-insensitive.|
|{{-v}}|Enable debugging output.|
|{{-V}}|Prints information about the utility and its version.|
|{{-X}} _AM host_|Specifies the host on which the Access Manager is running. If not specified, the default _AM host_ is used, or the localhost if no default was configured at install time.|
h2. {anchor:ACFES} Example
To delete an existing domain:
{panel}
{{commadmin domain delete –D chris –w bolton –d florizel.com –n sesta.com}}
{panel}
To delete just the mail service from the {{florizel.com}} domain:
{panel}
{{commadmin domain delete –D chris –w bolton –d florizel.com –n sesta.com \}}
{{–S mail}}
{panel}
The {{commadmin domain delete}} command marks a single hosted domain as deleted from the server. To mark multiple hosted domains as deleted, use the {{-i}} option.
When you mark a domain as deleted, all user and group entries in the domain are marked as deleted.
The [{{commadmin domain purge}}|#ACFEX] command will permanently remove the domain.
To disable Organization Administrators usage of a service like calendar service or mail service, use the {{-S}} option. Here {{S}} is in uppercase.
h2. {anchor:ACFEQ} Syntax
{panel}
{{commadmin domain delete –D _login_ –d _domain name_ –n _domain_ –w _password_}}
{{ [–h] [–?] [–i _inputfile_] [–p _AM port_] [–s] [–S _service_] [–v] [–V] [–X _AM host_]}}
{panel}
h2. {anchor:ACFER} Options
The following options are mandatory:
||Option ||Description ||
|{{-D}} _login_|The user ID of the Top-Level Administrator.|
|{{-d}} _domain name_|The DNS domain name that is being deleted. If {{-d}} is not specified, the domain specified by {{-n}} is used.|
|{{-n}} _domain_|The domain of the Top-Level Administrator.|
|{{-w}} _password_|The password of the Top-Level Administrator.|
The following options are non-mandatory:
||Option ||Description ||
|{{–h}}, {{–?}}|Prints command usage syntax.|
|{{-i}} _inputfile_|Reads the command information from a file instead of the command line.\\
\\An option value specified in the input file overrides any value for the same option set in the command line.|
|{{-p}} _AM port_|Specifies an alternate TCP port where the Access Manager is listening. If not specified, the default _AM port_ is used, or Port 80 is used if no default was configured during installation.|
|{{-s}}|Use SSL (Secure Socket Layer) to connect to the Access Manager.|
|{{-S}} _service_|Modifies the value of the specified service status attribute value to ”deleted’.\\
\\Multiple services are separated by a comma. The valid _service_ values are {{mail}}, and {{cal}} , and {{im}}_._ These values are case-insensitive.|
|{{-v}}|Enable debugging output.|
|{{-V}}|Prints information about the utility and its version.|
|{{-X}} _AM host_|Specifies the host on which the Access Manager is running. If not specified, the default _AM host_ is used, or the localhost if no default was configured at install time.|
h2. {anchor:ACFES} Example
To delete an existing domain:
{panel}
{{commadmin domain delete –D chris –w bolton –d florizel.com –n sesta.com}}
{panel}
To delete just the mail service from the {{florizel.com}} domain:
{panel}
{{commadmin domain delete –D chris –w bolton –d florizel.com –n sesta.com \}}
{{–S mail}}
{panel}