Added delete resource feature and code for update