Catman...:delete(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

Catman...:delete(3pm) πŸ’–

okay bestie, so this one is Catmandu::Cmd::delete, and it lives in the User Contributed Perl Documentation corner of the 3pm manual pages. It's the little command that could β€” it goes and deletes stuff from a store. Periodt. πŸ—‘οΈβœ¨


✨ NAME ✨

Catmandu::Cmd::delete β€” bestie's whole job is literally just: delete items from a store. that's it. that's the gig. πŸ’…


πŸŽ€ EXAMPLES πŸŽ€

okay so here's the vibe, the general shape of it is:

catmandu delete <STORE> <OPTIONS>
⚠️ heads up queen, delete is not playing around. once those items are gone they are gone gone. no undo button, no take-backs. 🫢

deleting by _id 🌸

you can yeet items that match a specific _id, and yes you can stack up multiple --id flags because we contain multitudes:

# delete items with matching _id
catmandu delete ElasticSearch --index-name items --bag book \
                              --id 1234 --id 2345

deleting by query πŸ¦‹

or, if you're feeling ✨specific✨, delete everything matching a query:

# delete items matching the query
catmandu delete ElasticSearch --index-name items --bag book \
                              --query 'title:"My Rabbit"'

deleting EVERYTHING πŸ’€

and then there's the unhinged option. no --id, no --query? congrats, you're deleting all the items. every last one. main character energy, but make it destructive:

# delete all items
catmandu delete ElasticSearch --index-name items --bag book

when you need backup 🧚

and if you ever forget how the store works (no shame, it happens to the best of us), you can always pull up:

catmandu help store ElasticSearch

iykyk. 🌈


little sign-off moment: this page came to you courtesy of perl v5.40.1, dated 2026-01-24, and it's part of the User Contributed Perl Documentation. slay, stay safe, and back up your data before you run this bestie πŸ’œπŸŽ€

πŸ“¦ where this page comes from