delete resource on deletion of item.