code: def clean(ctx, check, compiled_only, all_matches, force, verbose):
      
      force_clean_root = False
  
      if check:
          path = resolve_path(os.path.join(get_root(), check))
          if not dir_exists(path):
              abort(
                  'Directory `{}` does not exist. Be sure to `ddev config set {repo} '
                  'path/to/integrations-{repo}`.'.format(path, repo=ctx.obj['repo_choice'])
              )
      else:
          path = os.getcwd()
          if basepath(path) in ('integrations-core', 'integrations-extras'):
              if force:
                  force_clean_root = True
              else:
                  echo_warning(
                      'You are running this from the root of the integrations project. '
                      'Should we remove everything, including: '
                      '.cache, .coverage, .eggs, .pytest_cache, .tox, build, dist, and *.egg-info? '
                      'You can also use --force or -f to bypass this input.'
                  )
                  force_clean_root = click.confirm('Do you want to continue?')
  
      echo_waiting('Cleaning `{}`...'.format(path))
      if compiled_only:
          removed_paths = remove_compiled_scripts(path, detect_project=not all_matches)
      else:
          removed_paths = clean_package(path, detect_project=not all_matches, force_clean_root=force_clean_root)
  
      if verbose:
          if removed_paths:
              echo_success('Removed paths:')
              for p in removed_paths:
                  echo_info('    {}'.format(p))
  
      if removed_paths:
          echo_success('Cleaned!')
      else:
          echo_success('Already clean!')
docs: Removes a project's build artifacts.
  
      If `check` is not specified, the current working directory will be used.
  
      All `*.pyc`/`*.pyd`/`*.pyo`/`*.whl` files and `__pycache__` directories will be
      removed. Additionally, the following patterns will be removed from the root of
      the path: `.cache`, `.coverage`, `.eggs`, `.pytest_cache`, `.tox`, `build`,
      `dist`, and `*.egg-info`.