mongocli ops-manager agents apikey delete¶
agents apikey delete command deletes one agent API key for
the specified Ops Manager project. You must confirm the operation when you
run this command without the
You must have
GROUP_OWNER privileges for a project to delete an
agent API key from that project.
mongocli ops-manager|om agents apikey|apikeys delete|rm <agent-api-key-id> [ --force ] [ --profile|-P <profile-name> ] [ --projectId <id-of-project> ]
Unique identifier for the agent API key you want to delete.
Flag that indicates that the agent API key can be deleted without requiring confirmation.
If the command succeeds, it returns the following output in the default format. If the command returns errors, see Troubleshooting for recommended solutions.
? Are you sure you want to delete: <agent-api-key-id> Yes API Key '<agent-api-key-id>' deleted
The following command deletes one agent API key for a project using the default profile, which contains credentials and the project ID. The output is returned in the default format.
mongocli om agents apikey delete 5f49471dc90220199059861c
The previous command prints the following to the terminal.
? Are you sure you want to delete: 5f49471dc90220199059861c Yes API Key '5f49471dc90220199059861c' deleted.