Topologically selective deconstruction of polymers