pull request changes.  Adding more comments and javadocs. Also,
make sure a tenants workers have been set to 0 before deleting it.
This is to make it clear to the caller the behavior of the delete.
No additional tasks will be performed for the tenant since it has
no workers.