Update and delete resource