Navigation

mongocli ops-manager admin backup oplog delete

Note

You must be a Global Owner to run admin commands.

The admin backup oplog delete command deletes the configuration of the specified oplog store. You can also delete the configuration of an oplog store using the using the UI and the API.

mongocli ops-manager|om admin backup oplog(s) delete|rm <oplog-ID>
[ --force ]
[ --profile|-P <profile-name> ]
Note

Use -h or --help to view the command-line help for this command.

Option
Type
Description
Required?
oplog-ID
string
Unique name of the oplog store configuration.
yes
Option
Type
Description
Required?
--force
Flag that indicates that the configuration can be deleted without requiring confirmation.
no
--profile, -P
string
Name of the profile where the public and private keys for accessing Ops Manager are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.
no

If successful, the command returns the following message:

Oplog configuration '<oplog-ID>' deleted

The following example uses the mongocli om admin backup oplog delete command to delete the configuration of the oplog store whose ID is test. The command uses the --force option to bypass the confirmation prompt and the default profile to access Ops Manager.

mongocli om admin backup oplog delete test --force

The previous command returns the following:

Oplog configuration 'test' deleted
Give Feedback