Deleting users via Python SDK wipes historical interaction logs

Problem
We’re calling delete_users_user in the genesyscloud Python SDK v2.4.0 which hits DELETE /api/v2/users/{userId} and removes the account completely.

Code

users.delete_users_user(user_id="abc-123")

Error
Endpoint returns 204 No Content, but later queries throw a 404 on the owner reference.

Question
Need the exact endpoint or SDK flag to mask the user without nuking the audit trail. The docs don’t cover soft masking at all.

The issue is that DELETE hard-removes the resource, which breaks foreign key references in analytics tables. You don’t want to delete the user.

Use PATCH /api/v2/users/{userId} instead. Set the status to inactive and update the email to a placeholder. This preserves the historical data linkage while removing access.