Fix for recursiveDelete