移除资源¶
命令: rm
前面介绍了添加配置信息,当我们想从配置信息里面删除一些数据的时候可以用 rm 命令,此操作
仅移除配置信息数据而不是删除实际文件数据。
用 --help 命令可看到有以下子命令 algorithm dataset :
anyctl rm --help
Usage: anyctl rm [OPTIONS] COMMAND [ARGS]...
    Remove of local algorithm or dataset from local Anylearn project.
Options:
    --help  Show this message and exit.
Commands:
    algorithm
    dataset
移除算法¶
命令: algorithm
| 参数及缩写 | 是否必须 | 默认值 | 说明 | 
|---|---|---|---|
| name | True | 要移除的算法名称 | |
| --force, -f | True | 跳过提示强制移除 | 
使用示例:
anyctl rm algorithm cli_example_algo
运行后会有以下输出:
[WARNING] Algorithm to remove:
(
ID=ALGOxxx,
NAME=cli_example_algo,
DESCRIPTION=SDK_QUICKSTART,
LOCAL_DIR=None,
)
Note: this action only removes the reference in current project. Local files and remote entries are kept as is.
Are you sure you want to proceed? [y/N]:
移除资源时会有提示,确认是否移除,输入 y 或 N 确认或取消移除。如果不想显示此提示可传入 --force 或 -f 。
[SUCCESS] REMOVED  #资源移除成功
移除数据集¶
命令: dataset
| 参数及缩写 | 是否必须 | 默认值 | 说明 | 
|---|---|---|---|
| name | True | 要移除的数据集名称 | |
| --force, -f | True | 跳过提示强制移除 | 
使用示例:
anyctl rm dataset testctldset
运行后会有以下输出:
[WARNING] Dataset to remove:
(
ID=DSETxxx,
NAME=testctldset,
DESCRIPTION=SDK_QUICKSTART,
LOCAL_DIR=None,
)
Note: this action only removes the reference in current project. Local files and remote entries are kept as is.
Are you sure you want to proceed? [y/N]:
移除资源时会有提示,确认是否移除,输入 y 或 N 确认或取消移除。如果不想显示此提示可传入 --force 或 -f 。
[SUCCESS] REMOVED  #资源移除成功