Deleting user via /api/v2/users/{id} returns 204 but interactions become orphaned

Running a cleanup script to remove decommissioned agents. The goal is to delete the user record but keep the historical interaction data intact for audit purposes. I’m using the Python SDK.

Here is the code block:

client = PureCloudPlatformClientV2()
client.set_access_token(access_token)
users_api = client.users_api()

user_id = 'abc-123-def-456'
try:
 api_response = users_api.delete_user(user_id, cascade=False)
 print(f"Deleted {user_id}")
except ApiException as e:
 print(f"Status {e.status}, Reason: {e.reason}")

The call returns HTTP 204 No Content. Success. But when I query the interactions API for that user ID, the records are still there but the user_id field is now null or points to a generic ‘System’ placeholder. The link is broken. The cascade=false flag seems to ignore the user record but also strips the reference in the interaction logs.

I need the user record gone. But I need the interaction logs to still point to the specific user ID or at least retain the username. Is there a different endpoint or a pre-step required? Maybe deactivating first? Tried setting user.active = false via PUT before the DELETE. Same result. The delete wipes the identity mapping in the interaction store.