fixed recursiveDelete in mock