4.2 KiB
mc event remove
minio
Table of Contents
mc event remove
Syntax
The mc event remove
command removes event notification triggers on a bucket.
EXAMPLE
The following command removes a configured event notifications for
the specified bucket notification target <minio-bucket-notifications>
for the mydata bucket on the myminio MinIO
deployment:
mc event remove myminio/mydata arn:aws:sqs::primary:target
SYNTAX
The command has the following syntax:
mc [GLOBALFLAGS] event remove \
[--event "string"] \
[--force] \
[--prefix "string"] \
[--suffix "string"] \
ALIAS \
[ARN]
mc [GLOBALFLAGS] event remove [FLAGS] ALIAS ARN
Parameters
ALIAS
Required The S3 service alias <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)
<general/latest/gr/aws-arns-and-namespaces> of the
notification target.
The MinIO server outputs an ARN for each configured notification
target at server startup. See minio-bucket-notifications for more information.
--event
Optional The event(s) to remove. Specify multiple events
using a comma , delimiter. See mc-event-supported-events for
supported events.
Defaults to removing all events on the ~mc event remove ALIAS bucket with the ~mc event remove ARN
notification target.
--force
Optional Removes all events on the ~mc event remove ALIAS
bucket with the ~mc event remove ARN notification target.
--prefix
Optional The bucket prefix in which the command removes bucket notifications.
For example, given a ~mc event remove ALIAS of
play/mybucket and a ~mc event remove --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 ~mc event remove ALIAS of
play/mybucket and a ~mc event remove --suffix of .jpg, the
command only removes bucket notifications in
play/mybucket/*.jpg.
Global Flags
Examples
Remove Event Notifications from a Bucket
Example
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 <minio-bucket-notifications>:
mc event remove myminio/mydata arn:minio:sqs::primary:webhook
Syntax
mc event remove ALIAS ARN
Replace
ALIASwith thealias <alias>of the MinIO deployment on which to add the bucket notification event. For example:myminio/mydataReplace
ARNwith the notification targetARN <mc event add ARN>.