Adding method to delete a resource.