Documentation

Documentation

mc event remove

Syntax

The mc event remove command removes event notification triggers on a bucket.

The following command removes a configured event notifications for the specified bucket notification target for the mydata bucket on the myminio MinIO deployment:

mc event remove myminio/mydata arn:aws:sqs::primary:target

The command has the following syntax:

mc [GLOBALFLAGS] event remove        \
                 [--event "string"]  \
                 [--force]           \
                 [--prefix "string"] \
                 [--suffix "string"] \
                 ALIAS               \
                 [ARN]
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters seperated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

mc [GLOBALFLAGS] event remove [FLAGS] ALIAS ARN

Parameters

ALIAS

Required The S3 service alias and bucket from which the command removes the event notification. For example:

mc event add play/mybucket
ARN

Required The Amazon Resource Name (ARN) of the notification target.

The MinIO server outputs an ARN for each configured notification target at server startup. See Bucket Notifications for more information.

--event

Optional The event(s) to remove. Specify multiple events using a comma , delimiter. See Supported Bucket Events for supported events.

Defaults to removing all events on the ALIAS bucket with the ARN notification target.

--force

Optional Removes all events on the ALIAS bucket with the ARN notification target.

--prefix

Optional The bucket prefix in which the command removes bucket notifications.

For example, given a ALIAS of play/mybucket and a --prefix of photos, the command only removes bucket notifications in play/mybucket/photos.

--suffix

Optional The bucket suffix in which the command removes bucket notifications.

For example, given a ALIAS of play/mybucket and a --suffix of .jpg, the command only removes bucket notifications in play/mybucket/*.jpg.

Global Flags

This command supports any of the global flags.

Examples

Remove Event Notifications from a Bucket

The following command removes all event notification triggers on a bucket. The command assumes the MinIO deployment has at least one configured bucket notification target:

mc event remove myminio/mydata arn:minio:sqs::primary:webhook
mc event remove ALIAS ARN
  • Replace ALIAS with the alias of the MinIO deployment on which to add the bucket notification event. For example:

    myminio/mydata

  • Replace ARN with the notification target ARN.

Behavior

S3 Compatibility

The mc commandline tool is built for compatibility with the AWS S3 API and is tested MinIO and AWS S3 for expected functionality and behavior.

MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.