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
Examples
Delete a service principal using its name suffix:
Delete a service principal using its resource name:
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
.