Handle response from server
Implemented deletion on the server