HashiCorp Cloud Platform
hcp iam service-principals delete
Command: hcp iam service-principals delete
The hcp iam service-principals delete
command deletes a service principal.
Once the service-principal is deleted, all IAM policy that bound the service principal will be updated.
To delete an organization service principal, pass the service principal's resource name or set the --project flag to "-" and pass its resource name suffix.
Usage
$ hcp iam service-principals delete SP_NAME [Optional Flags]
Examples
Delete a service principal using its name suffix:
$ hcp iam service-principals delete example-sp
Delete a service principal using its resource name:
$ hcp iam service-principals delete \
iam/project/example-project/service-principal/example-sp
Positional arguments
SP_NAME
- The name of the service principal to delete. The name may be specified as either:- The service principal's resource name. Formatted as one of the following:
- The resource name suffix,
SP_NAME
.