adding support for deleting a resource