Skip to main content
cops auth delete removes the named profile from config.json. All stored credentials and settings for that profile are deleted permanently.
This action is irreversible. There is no confirmation prompt. Ensure you have the profile name correct before running the command.

Usage

cops auth delete <profile>

Arguments

profile
string
required
The name of the profile to delete. Run cops auth profiles to see all available profile names.

Examples

cops auth delete dc-staging
On success:
Deleted profile 'dc-staging'.

Behavior when deleting the active profile

If the profile you delete is currently active, cops automatically falls back to the first remaining profile (if any). If no profiles remain after the deletion, there is no active profile and commands that require authentication will error until you run cops auth login.

Notes

If the named profile does not exist, the command exits with an error. Check available profiles first with cops auth profiles.

cops auth profiles

List all configured profiles.

cops auth logout

Unset the active profile without deleting it.

cops auth login

Create a replacement profile.

Build docs developers (and LLMs) love