matrixorigin/mo_ctl_standalone

[Feature Request]: inplement function 'uninstall'

aronchanisme opened this issue · 1 comments

Is there an existing issue for the feature request?

  • I have checked the existing issues.

Feature Description

mo_ctl uninstall # uninstall mo under path "${MO_PATH}/matixone"

Feature Implementation

  1. pre-requistes: user needs to make sure mo-service is not running, and if yes stop any by mo_ctl stop
  2. user will be prompted to double confirm the operation
  3. once confirmed, mo_ctl uninstall will remove the $MO_PATH/matrixone folder

Additional information

none

test done, usage:

mo_ctl uninstall help
Usage           : mo_ctl uninstall        # uninstall mo from path MO_PATH=/xx/xx/xx/matrixone
                                          # note: you will need to input Yes/No to confirm before uninstalling