remove a resource