security iam policy remove
Removes an IAM policy.
You can use iam policy remove to remove an existing IAM
policy.
You can run the iam policy remove command on a primary
cluster only.
You can remove a policy with untagged status only.
Syntax
- CLI
-
maprcli security iam policy remove -name <Policy Name>
- REST
-
Request Type DELETE Request URL http[s]://<host>:<port>/rest/iam/policy/remove?<parameters>
Parameters
| Parameter | Description |
|---|---|
name |
(Required) Name of the policy. |
Example
Remove or delete IAM policy Policy1
CLI
maprcli security iam policy remove -name Policy1 -json
{
"timestamp":1726217862296,
"timeofday":"2024-09-13 01:57:42.296 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Identity Policy 'Policy1' removed successfully"
]
}
REST
curl -u <username> -X DELETE https://server.sj.us:8443/rest/security/iam/policy/remove?name=Policy1