So I see there is an option to mark the chest for deconstruction when the miner runs out of resources, but I was wondering if you could also make it mark the 3 belts in front of it as well if it's at the end of a line. Also adding support in case one decided to use a compact version with the underground belts.
So basically when the miner goes, it checks the belt it was loading onto to, if that has nothing on it, it gets marked for deconstruction, then checks the belt the previous belt was going towards and so on until you reach something where something feeds off (line an inserter) or on it.