文档

Unity Gaming Services CLI


GitHub Repository

Unity Gaming Services CLI


Delete module version

Delete a single version of a Cloud Code module.
阅读时间1 分钟最后更新于 4 天前

Delete a single version of a Cloud Code module, leaving the module and its other versions in place.
To delete the whole module, use delete instead.

Command

Authentication Required:
Yes
ugs cloud-code modules delete-version <module-name> <version> [options]

Arguments

<module-name>
Name of the target module
<version>
The version to delete, as listed by
modules get --versions

Options

Alias

Description

project-id-p, --project-idThe Unity cloud project ID.
environment-e, --environment-nameThe services environment name.
help-?, -h, --helpDisplay help and usage information.
quiet-q, --quietReduce logging to a minimum.
json-j, --jsonUse JSON as the output format.

Notes

The version must be a version number.
latest
is not accepted: a delete never resolves a selector on your behalf.
Two versions cannot be deleted:
  • the live version, which is the one the module currently serves
  • any version assigned to a release
Both are refused with a conflict. To remove the live version, publish another version first.
This command requires module versions to be enabled for the project. Without it a module has no versions to name, and the request is refused.