mirror of
https://github.com/minio/docs.git
synced 2025-07-30 07:03:26 +03:00
Closes #807 Closes #846 --------- Co-authored-by: Daryl White <53910321+djwfyi@users.noreply.github.com>
78 lines
1.6 KiB
ReStructuredText
78 lines
1.6 KiB
ReStructuredText
======================
|
|
``mc admin policy rm``
|
|
======================
|
|
|
|
.. default-domain:: minio
|
|
|
|
.. contents:: Table of Contents
|
|
:local:
|
|
:depth: 2
|
|
|
|
.. mc:: mc admin policy remove
|
|
.. mc:: mc admin policy rm
|
|
|
|
Syntax
|
|
------
|
|
|
|
.. start-mc-admin-policy-remove-desc
|
|
|
|
Removes an IAM policy from the target MinIO deployment.
|
|
|
|
.. end-mc-admin-policy-remove-desc
|
|
|
|
The :mc:`mc admin policy remove` command has equivalent functionality to :mc:`mc admin policy rm`.
|
|
|
|
.. tab-set::
|
|
|
|
.. tab-item:: EXAMPLE
|
|
|
|
The following command removes the policy names ``writeonly`` from the ``myminio`` MinIO deployment:
|
|
|
|
.. code-block:: shell
|
|
:class: copyable
|
|
|
|
mc admin policy rm myminio writeonly
|
|
|
|
.. tab-item:: SYNTAX
|
|
|
|
The command has the following syntax:
|
|
|
|
.. code-block:: shell
|
|
:class: copyable
|
|
|
|
mc admin policy rm TARGET POLICYNAME
|
|
|
|
.. include:: /includes/common-minio-mc.rst
|
|
:start-after: start-minio-syntax
|
|
:end-before: end-minio-syntax
|
|
|
|
|
|
Parameters
|
|
~~~~~~~~~~
|
|
|
|
The :mc-cmd:`mc admin policy rm` command accepts the following arguments:
|
|
|
|
.. mc-cmd:: TARGET
|
|
|
|
The :mc-cmd:`alias <mc alias>` of a configured MinIO deployment from which to remove the policy.
|
|
|
|
.. mc-cmd:: POLICYNAME
|
|
|
|
The name of the policy to remove.
|
|
|
|
Global Flags
|
|
~~~~~~~~~~~~
|
|
|
|
.. include:: /includes/common-minio-mc.rst
|
|
:start-after: start-minio-mc-globals
|
|
:end-before: end-minio-mc-globals
|
|
|
|
Examples
|
|
--------
|
|
|
|
Remove a policy called ``listbuckets``.
|
|
|
|
.. code-block:: shell
|
|
:class: copyable
|
|
|
|
mc admin policy rm myminio listbuckets |