mongocli ops-manager maintenanceWindow delete
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoCLI.
The maintenanceWindow delete
command deletes one Ops Manager
maintenance window
specified by ID. You can also delete a maintenance window
through the API.
Syntax
mongocli ops-manager|om maintenanceWindow delete <window-id> [ --force ] [ --profile|-P <profile-name> ] [ --projectId <project-ID> ]
Arguments
Argument | Type | Description | Required? |
---|---|---|---|
<maintenance-window-id> | string | Unique identifier of the maintenance window that you
want to delete. | yes |
Options
Option | Type | Description | Required? |
---|---|---|---|
--force | Flag that indicates that the maintenance window can
be deleted without requiring confirmation. | no | |
--profile , -P | string | Name of the profile where the public and private
keys for the project are saved. If omitted, uses the
default profile. To learn more about creating a
profile, see Configure the MongoDB CLI. | no |
--projectId | string | Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable. | no |
Output
Maintenance window <window-id> successfully deleted.
Example
The following example uses the mongocli om maintenanceWindow
delete
command to delete a maintenance window with ID
5f7cb0eec902201990cb1506
. It uses a profile called myOm
.
mongocli om maintenanceWindow delete 5f7cb0eec902201990cb1506 --force -P myOm