It only deletes doors you have added manually, not ones that are parts of the randomly generated tiles, like the corner sections that have doors on the civ wall sections.