You explain how to delete one object from the list using curl -H "Content-Type: application/json" -X DELETE http://localhost:3000/items/{_id}
. But I have many, many objects and I was wondering if there was a quick way of deleting them all at once instead of entering the command all those times. i tried to do curl -H "Content-Type: application/json" -X DELETE http://localhost:3000/items/*
but that didn’t work. Thank you for your help!
Not by default, DELETE requests generally work with just a single id. Otherwise you can write an endpoint to delete a group, or have it provide a query.
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]