for the purposes of showing an example of how to do rewriting, I think I would leave out this deleteResource() method.