Docs Menu
Docs Home
/ /
MongoDB Command Line Interface
/ / /

mongocli ops-manager maintenanceWindow delete

On this page

  • Syntax
  • Arguments
  • Options
  • Output
  • Example

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

mongocli ops-manager|om 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 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

Back

Update a Maintenance Window