< Home

ops uninstall file

Function

The ops uninstall file command uninstalls a Python script.

Format

ops uninstall file file-name

Parameters

Parameter

Description

Value

file-name

Specifies the name of the script file to be uninstalled.

The value must be the name of a script file that has been installed.

If a script in a specified installation directory directory/file-name needs to be deleted, directory specifies the installation directory of the script.

NOTE:

The total length of file-name and the installation directory of the script cannot exceed 118. The total length refers to the storage path + $_user + directory name + file name.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

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

Precautions

This command cannot uninstall a script for which a script assistant has been configured. To uninstall the script, delete the script assistant first.

If the script for which a script assistant has configured invokes another script, the called script can be uninstalled using this command. Therefore, it is recommended that you use one script to implement required functions.

Example

# Uninstall the script file config.py in the default directory flash:/$_user.

<HUAWEI> ops uninstall file config.py

# Uninstall the script file config.py in the specified directory flash:/$_user/user.

<HUAWEI> ops uninstall file user/config.py
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >