Catman...:delete(3pm)
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
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms