Next, to try deleting any city, we will use the HTTP method DELETE as follows: curl -X DELETE http://<target ip>/api.php/city/Baltimore , where we’ll be deleting a city named Baltimore.
Let’s check whether Baltimore has been successfully deleted from the database : curl -s http://<target ip>/api.php/city/Baltimore | jq