Navigation

mongocli cloud-manager maintenanceWindow delete

The maintenanceWindow delete command deletes one Cloud Manager maintenance window specified by ID. You can also delete a maintenance window through the API.

mongocli cloud-manager|cm maintenanceWindow delete <window-id>
[ --force ]
[ --profile|-P <profile-name> ]
[ --projectId <project-ID> ]
Argument
Type
Description
Required?
<maintenance-window-id>
string
Unique identifier of the maintenance window that you want to delete.
yes
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
Maintenance window <window-id> successfully deleted.

The following example uses the mongocli cm maintenanceWindow delete command to delete a maintenance window with ID 5f7cb0eec902201990cb1506. It uses a profile called myCm.

mongocli cm maintenanceWindow delete 5f7cb0eec902201990cb1506 --force -P myCm
Give Feedback