mongocli atlas privateendpoint <provider> delete¶
privateendpoint <provider> delete command deletes one
private endpoint connection for AWS or Azure in an Atlas project.
You can also delete a private endpoint connections through the
mongocli atlas privateendpoint(s)|privateEndpoint(s) aws|azure delete <private-endpoint-id> [ --force ] [ --profile|-P <profile-name> ] [ --projectId <project-ID> ]
--help to view the command-line help for
Unique identifier of the private endpoint connection that 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: <private-endpoint-id> Yes Private endpoint '<private-endpoint-id>' deleted
The following command deletes one private endpoint connection for AWS or Azure in a project using the default profile, which contains credentials and the project ID. The output is returned in the default format.
mongocli atlas privateendpoints aws delete 5f4fc14da2b47835a58c63a2
The previous command prints the following to the terminal.
? Are you sure you want to delete: 5f4fc14da2b47835a58c63a2 Yes Private endpoint '5f4fc14da2b47835a58c63a2' deleted