got resource deletion to work