Uninstalling a Script or Batch File

You can uninstall unnecessary scripts or batch files to release storage space on a device. If an installed script or batch file needs to be updated, uninstall it first and reinstall it after the modification.

Context

  • If a file name is specified, the command uninstalls the specified file. If a directory is specified, the command uninstalls all files in the directory and its subdirectories.

  • This command cannot uninstall a script that has been bound to an assistant. To uninstall the script, unbind it from assistant first.

  • If the script bound to an assistant calls other scripts, the called scripts can be uninstalled using this command. Therefore, it is recommended that you use one script to implement required functions.

Procedure

  1. Run ops uninstall file file-name-or-dir

    A script or batch file is uninstalled.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >