The removeResource method with String parameter does not work. The method gets an edit and calls removeResource(edit), but does not commit/cancel the edit. The javadoc comments for the editResource() and editResourceForDelete() methods say that the edit must be committed to complete the operation or canceled. The removeResource method with String parameter does not commit or cancel. That may be the problem.
Note that some other uses of removeResource(edit) are not followed by commit/cancel. These should be checked as well.
The removeResource method with String parameter does not work. The method gets an edit and calls removeResource(edit), but does not commit/cancel the edit. The javadoc comments for the editResource() and editResourceForDelete() methods say that the edit must be committed to complete the operation or canceled. The removeResource method with String parameter does not commit or cancel. That may be the problem.
Note that some other uses of removeResource(edit) are not followed by commit/cancel. These should be checked as well.