tfctl profile profiles delete
The tfctl profile profiles delete command deletes an existing configuration profile.
Usage
$ tfctl profile profiles delete PROFILE_NAMES [PROFILE_NAMES ...] [options]
Description
The tfctl profile profiles delete command deletes an existing configuration profile. If the profile is the active profile, it may not be deleted.
To delete the current active profile, first run tfctl profile profiles activate to activate a different profile.
You can delete multiple profiles in a single command by providing multiple profile names.
Arguments
PROFILE_NAMES [PROFILE_NAMES ...]: (Required) The names of the profiles to delete. May not be the active profile.
Global flags
All tfctl commands support options that control output formatting and CLI behavior. Refer to Global flags reference for the complete list of available options.
Examples
The following examples demonstrate how to delete an existing configuration profile.
Delete a profile
The following example deletes a profile by name. Replace <PROFILE_NAME> with the name of the profile to delete.
$ tfctl profile profiles delete <PROFILE_NAME>
Delete the active profile
You cannot delete the active profile. The following example shows how to first activate a different profile, then delete the original profile. Replace <PROFILE_NAME> with the name of a new profile to activate, and <OLD_PROFILE_NAME> with the name of the profile to delete.
$ tfctl profile profiles activate <PROFILE_NAME>
Then, delete the other profile:
$ tfctl profile profiles delete <OLD_PROFILE_NAME>