Fixed deleting resources in MaintTool

Main code rev. 1942