mc admin policy remove

Removes a policy.

The Object Store administrator runs this command to remove a policy. A policy can only be removed if it is not attached to any user or group.

Syntax

CLI
mc admin policy remove TARGET POLICYNAME [ account=<account_name> ] [ domain=<domain_name> ]

POLICYNAME:
  Name of the policy to be removed.

account:
  Name of the account to which the policy belongs. Default Value: 'default'

domain:
  Name of the domain to which the policy and account belong. Default Value: 'primary'

FLAGS:
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store from which the command removes a policy. This parameter is mandatory.
POLICYNAME The name of the policy to remove. This parameter is mandatory.
account The account in which this policy was created.
domain The domain to which this policy account belongs.
json Enables JSON formatted output.
debug Enables output for debugging.
insecure Disables SSL verification.
help Shows this help.

Examples

  1. Remove the listbuckets policy from the Object Store deployment with alias salesobject:
    CLI
    mc admin policy remove salesobject listbuckets
  2. Remove the listbuckets policy from the Object Store deployment with alias salesobject, which is applicable to the domain primary and account northamerica:
    CLI
    mc admin policy remove salesobject listbuckets domain='primary' account='northamerica' -json