test delete resource