code: def uninstall(
      ctx,
      state,
      all_dev=False,
      all=False,
      **kwargs
  ):
      
      from ..core import do_uninstall
      retcode = do_uninstall(
          packages=state.installstate.packages,
          editable_packages=state.installstate.editables,
          three=state.three,
          python=state.python,
          system=state.system,
          lock=not state.installstate.skip_lock,
          all_dev=all_dev,
          all=all,
          keep_outdated=state.installstate.keep_outdated,
          pypi_mirror=state.pypi_mirror,
          ctx=ctx
      )
      if retcode:
          sys.exit(retcode)
docs: Un-installs a provided package and removes it from Pipfile.