release_delete.py script deletes a release and its update paths from your server or CDN. You need credentials for your server or CDN set up first. For every option, see release_delete.py.
Which update paths are safe to delete
Updates aren’t sequential, so a release’s update paths become obsolete as soon as the release isn’t assigned to any environment. For example, release 20 is in production with update paths 19 to 20, 18 to 20, 17 to 20 and 16 to 20. You then deploy release 21 with its own update paths and promote it to production. Release 20 is no longer in any environment, so no launcher uses the paths to 20 again. They’re safe to delete. Deleting update paths never leaves players stuck. Without an update path, the launcher still only downloads the pieces that changed between the player’s release and the required release. See Updates without a delta.Which releases are safe to delete
Don’t delete a release that’s assigned to an environment. Launchers pointed at that environment fail until you assign a new release.- Don’t delete a release you still want to build deltas from.
- Delete a release’s update paths before the release. Otherwise the scripts can’t delete the update paths and you have to remove them by hand.
- Deleting a release only removes the pieces no other release in the repository uses. If each release is 10 GB but only 1 GB of pieces is unique to the one you delete, only 1 GB is freed.
Choose the release
Identify the release, or the release whose update paths you’re deleting, with one of:version: the version you gave it when deploying, for example"2.0.2.1".description: the description you gave it, for example"Main game client v2.0.2.1".release_id: the release’s SHA1 ID, for example"1709ba73512217afaad521faad61e586f34e47f5".
tracker.json or repositoryname.history.json:
tracker.json
--version.
Delete update paths
Use--updatepaths with --repository and --sync_directory:
sync_directory/repositoryname/delta/target_release_id/source_release_id/. The script deletes the folders’ contents but not the folders.
Delete a release
Use--release with --repository and --sync_directory:
sync_directory/repositoryname/pieces/. As with deltas, only the folders’ contents are deleted.

