public function uninstall($id)
    {
        $extension = $this->getModel()->query()->findOrFail($id);
        // TODO: remove extension files.
        $extension->delete();
    }
public function uninstall($id)
    {
        $extension = $this->getModel()->query()->findOrFail($id);
        // TODO: remove extension files.
        $extension->delete();
    }
public function uninstall ( $ id ) { $ extension = $ this -> getModel ( ) -> query ( ) -> findOrFail ( $ id ) ; // TODO: remove extension files. $ extension -> delete ( ) ; }
Uninstall extension.

@param int $id
@throws \Exception
Uninstall extension .