Skip to main content
Contributor ⭐️
Feb 21, 2023 6:25 PM UTC
Solved

How to delete accounts and users from PX

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.

    Gainsight Employee ⭐️
    Feb 21, 2023 7:14 PM UTC

    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 

    4 replies

    Gainsight Employee ⭐️
    Feb 21, 2023 6:39 PM UTC

    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

    Translate
    Jon TAuthor
    Contributor ⭐️
    Feb 21, 2023 6:41 PM UTC

    Thanks Srinivas.  Does anyone happen to have some CURL examples that I could use as a starting point to build a quick script? 

    Translate
    Gainsight Employee ⭐️
    Feb 21, 2023 7:14 PM UTC

    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 

    Translate
    Jon TAuthor
    Contributor ⭐️
    Feb 21, 2023 7:17 PM UTC

    Thank you very much @srinivas myakala !!!

    Translate