mc version suspend
Syntax
The mc version suspend command disables versioning on the specified bucket.
The following command disables versioning for the mybucket bucket on the myminio MinIO deployment:
The command has the following syntax:
- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated 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.
Parameters
ALIAS
mc-cmd
The full path to the bucket on which to disable versioning. For example:
Global Flags
This command supports any of the global flags.
Example
Disable Bucket Versioning
Use mc version suspend to disable versioning for a bucket:
- Replace
ALIASwith thealiasof a configured MinIO deployment. - Replace
PATHwith the bucket on which to disable versioning.
Behavior
Bucket Versioning with Existing Data
Disabling bucket versioning on a bucket with existing versioned data does not remove any versioned objects. Applications can continue to access versioned data after disabling bucket versioning. Use mc rm --versions ALIAS/BUCKET/OBJECT to delete an object and all its versions.
S3 Compatibility
SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is best effort.