Skip to main content

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 @Jon T ,

 

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 @Jon T,

 

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 @srinivas myakala !!!


Reply