mongocli ops-manager logs jobs delete¶
logs jobs delete command deletes an in-progress or completed
log collection job from the specified Ops Manager project. You can also
delete a log collection job through the
mongocli ops-manager|om logs|log jobs|job delete <id> [ --output|-o <output-format> ] [ --projectId <id-of-project> ] [ --profile|-P <profile-name> ]
Unique identifier of the log collection job to delete.
You can retrieve a list of log collection jobs for a project
When you run
logs jobs delete, your terminal prompts:
Are you sure you want to delete: <id> (y/N)
In the terminal, you can enter:
yto delete the log collection job, or
nto abort the command and keep the log collection job (default).
If the command prints an error, see Troubleshooting for recommended solutions.
The following example uses the
mongocli ops-manager logs jobs delete
command to delete the completed log collection job
5ec1931cac1a6300711ff72e. The command uses the default profile where
the project ID and the Programmatic API Key