code: def clean_directories(builddir, in_dir=True, out_dir=True):
      
      container_in = local.path(builddir) / "container-in"
      container_out = local.path(builddir) / "container-out"
  
      if in_dir and container_in.exists():
          if ui.ask("Should I delete '{0}'?".format(container_in)):
              container_in.delete()
      if out_dir and container_out.exists():
          if ui.ask("Should I delete '{0}'?".format(container_out)):
              container_out.delete()
docs: Remove the in and out of the container if confirmed by the user.