docs: def clean(ctx):
      """ Clean previously built package artifacts.
      """
  
      clean_command = "python setup.py clean"
      report.info(ctx, "package.clean", "cleaning up built package artifacts")
      ctx.run(clean_command)
  
      egg_name = f"{ctx.metadata['package_name']}.egg-info"
      report.info(ctx, "pacakge.clean", "removing build directories")
      for artifact in ("dist", "build", egg_name, f"src/{egg_name}"):
          artifact_dir = ctx.directory / artifact
          if artifact_dir.is_dir():
              report.debug(ctx, "package.clean", f"removing directory {artifact_dir!s}")
              ctx.run(f"rm -rf {artifact_dir!s}")