Ah, it looks like the core issue is with deleting paths that don't exist.
This isn't a safe assumption for docker containers because they are frequently rebuilt and many application specific directories are made the first time you run that application. I'm not sure if defaulting to removing non-existent PATH directories is worth it for the general case either really.