Version tested: 0.17.52
Using a Deconstruction Planner in Editor mode (instant deconstruction = on) on a train + rails:
A DP used in Editor mode on trains-on-rails will remove both the train and straight rails (unlike in normal game mode), but it will leave behind curved rails in any place where those curved rails had a loco or wagon on them:
Before DP:

After DP:

Expected result: All rails are removed.