:orphan: .. _s_11PytoRuntime14PkgUninstallerV9uninstall7handlerySbAC12RemoveActionO_SbztYaYbXE_tYaKF: ``uninstall(handler:)`` ======================= Uninstalls the package. .. raw:: html .. rubric:: Declaration .. raw:: html
func uninstall(
       handler: (
           @Sendable
           (
               RemoveAction,
               inout Bool
           ) async -> Bool
       )
   ) async throws
   
.. rubric:: Parameters - **handler**: Returns whether the action should be performed. Takes the action to be performed and a boolean that can be set to ``true`` to stop the whole uninstallation. .. rubric:: Discussion The uninstaller calls ``handler`` before every action it performs, letting the client decide whether the :swift:symbol:`PytoRuntime.PkgUninstaller.RemoveAction` should be performed or not.