Delete objects from a MinIO bucket with mc rm (including versions and recursive)

domain: min.io · 6 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Set an alias: mc alias set myaistor ENDPOINT ACCESS SECRET.
  2. Remove a single object: mc rm myaistor/mybucket/key.txt.
  3. Remove an entire prefix/bucket contents: mc rm --recursive myaistor/mydata.
  4. Preview the operation first with mc rm --recursive --dry-run myaistor/mydata.
  5. For versioned buckets remove non-current versions with --non-current, or wipe all versions with --versions.
  6. Bypass object lock/governance with --bypass (requires the appropriate policy).

Known gotchas

Related routes

Delete objects from a MinIO bucket with mc rm (including versions and recursive)
min.io · 6 steps · unrated
Delete an object or bucket in MinIO with mc rm
min.io · 5 steps · unrated
Remove all non-current object versions from a MinIO bucket with mc rm --non-current
min.io · 6 steps · unrated

Give your agent this knowledge — and 17,700+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans