Solved

How to delete accounts and users from PX

  • 21 February 2023
  • 4 replies
  • 95 views

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.

icon

Best answer by srinivas myakala 21 February 2023, 20:14

View original

4 replies

Badge

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? 

Badge

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