In Gainsight PX, how can we delete accounts (shown in the accounts explorer) and users (shown in the audience explorer)? During our initial implementation, some teams added test accounts and fake users to our product product tag. Now we want to remove this data, but there doesn’t appear to be any way to do this in the Gainsight PX UI.
Hi
Currently, we do not have the ability to delete user/account entities from the UI. Please consider using the REST API for these deletion operations. Below are the dedicated endpoints for these tasks
User deletion: https://gainsightpx.docs.apiary.io/#reference/users/v1usersdelete/delete-user
Account deletion: https://gainsightpx.docs.apiary.io/#reference/accounts/v1accountsaccountid/delete-account.
In case of further assistance/questions, feel free to reach out to us at pxsupport@gainsight.com.
Thanks,
Srinivas.
Support Analyst L2
Thanks Srinivas. Does anyone happen to have some CURL examples that I could use as a starting point to build a quick script?
Sure
Below are the cURL examples for the same(please replace the {accountId} and {userId} and the API key accordingly)
Generate API key from: https://app.aptrinsic.com/settings/api-keys
Account deletion:
curl --include --request DELETE --header "X-APTRINSIC-API-KEY: API-key" --header "Accept: */*" --header "Connection: keep-alive" --header "Accept-Encoding: gzip, deflate, br" 'https://api.aptrinsic.com/v1/accounts/{accountId}'
User deletion:
curl --include --request DELETE --header "X-APTRINSIC-API-KEY: API-key" --header "Accept: */*" --header "Connection: keep-alive" --header "Accept-Encoding: gzip, deflate, br" 'https://api.aptrinsic.com/v1/users/{userId}'
---------------------
Use the corresponding Base URL in the request:
More info in the API docs: https://gainsightpx.docs.apiary.io/#reference
Thank you very much
Reply
Sign up
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Welcome to the Gainsight Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.