文档

Unity Gaming Services CLI


GitHub Repository

Unity Gaming Services CLI


Delete script version

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

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

Command

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

Arguments

<script-name>
Name of the target script
<version>
The version to delete, as listed by
scripts 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 active version, which is the one publish most recently promoted
  • any version assigned to a release
Both are refused with a conflict. To remove the active version, publish another version first.
The working copy is not a published version and cannot be deleted with this command.