All of this should be in a `setUpDeleteResource` function