If the partition is installed prior to the doors being installed, the doors will also be deleted because they are defining the overlays, gaps, etc. If the partition is installed after the doors, it should be able to be deleted without deleting the doors.