I am trying to develop a RESTful Sinatra application. Now, I know how to respond to a delete request with something like
delete \'/user/:id\' do |id| #do some
see also Call Sinatra delete route with jQuery for how to do this with jQuery and JSON at the front end and Sinatra on the back end.