Man pages sections > man3 > Catmandu::Cmd::delete

Catmandu::Cmd::delete - delete objects from a store

Catmandu::Cmd::delete(3pm) User Contributed Perl Documentation Catmandu::Cmd::delete(3pm)

NAME

Catmandu::Cmd::delete - delete objects from a store

EXAMPLES

  catmandu delete <STORE> <OPTIONS>
  
  # delete items with matching _id
  catmandu delete ElasticSearch --index-name items --bag book \
                                --id 1234 --id 2345
  # delete items matching the query
  catmandu delete ElasticSearch --index-name items --bag book \
                                --query 'title:"My Rabbit"'
  # delete all items
  catmandu delete ElasticSearch --index-name items --bag book
  catmandu help store ElasticSearch
2017-10-01 perl v5.26.0