Added delete resource functionality