delete resource reimplemented