Changed so that users.erl call resources:delete... instead of resource:delete...