I can see from here how to delete a table record by id
i.e. this deletes the user record with id = 1
curl -X DELETE "http://localhost:3000/users/1"
But what if I wanted to delete records based on something else, e.g. all users with name: "John", how would that be done via a curl command?
Update: I thought curl -X DELETE -d "name=John" "http://localhost:3000/users" may work, but it doesn't