Skip to content

Commit 51b1db6

Browse files
author
dnichol
committed
Added warning that default behaviour has changed
1 parent 44a0588 commit 51b1db6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/delete_older_versions_system_wide.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353

5454
projects = hub.get_projects(limit=9999).get('items', [])
5555

56+
logging.warn(f"The default behaviour of this script has changed. Previously it would not delete mapped code locations while deleting a project version and would rely on these being cleaned up by the system at a later date.")
57+
logging.info(f"If you wish to keep the previous behaviour please pass the -ncl or --do_not_delete_code_locations parameter.")
58+
5659
for project in projects:
5760
versions = hub.get_project_versions(project, limit=9999)
5861
sorted_versions = sorted(versions['items'], key = lambda i: i['createdAt'])

0 commit comments

Comments
 (0)