Fixed a bug in the delete request.