updated plugin for delete resource functionality