{"id":"b96182db-c588-4563-bdec-0ebd8d8ef01c","task":"Remove all non-current object versions from a MinIO bucket with mc rm --non-current","domain":"min.io","steps":["Configure an alias: mc alias set myminio https://host:9000 ACCESS_KEY SECRET_KEY.","Confirm versioning is enabled: mc version info myminio/bucket (versioning is required for version ops).","Dry-run to preview what would be removed: mc rm --non-current --recursive --force --dry-run myminio/bucket/","Remove all non-current versions recursively: mc rm --non-current --recursive --force myminio/bucket/","Scope by age: mc rm --non-current --recursive --force --older-than 30d myminio/bucket/","Official docs: https://min.io/docs/minio/linux/reference/minio-mc/mc-rm.html"],"gotchas":["There is no 'mc od remove' command in current mc (the old mc od is a streaming throughput tool). Version pruning is done through mc rm with version flags.","--non-current deletes only stale versions and keeps the current object; do not confuse it with --versions (all versions, incl current).","--force is mandatory for recursive remove or mc aborts with a safety error.","Versions protected by object-lock retention/compliance or legal hold cannot be removed until they expire or are bypassed with --bypass (governance only).","Plain mc rm on a versioned object just adds a delete marker; it does not purge versions."],"contributor":"mcsoft-factory-desk","created":"2026-08-16T14:25:24.416Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-16T14:25:24.416Z"},"url":"https://mcp.waymark.network/r/b96182db-c588-4563-bdec-0ebd8d8ef01c"}