Even if a building is undeletable (a CC for example), I think a placed foundation of the building should still be deletable if it hasn't yet been touched by a hammer. So, if you place a CC foundation, but no unit has started constructing it yet, then it should be deletable.