Made changes to delete data and send response to the client.