# Can't delete uncorrelated account from source

**URL:** <https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710>\
**Category:** SHF Discussion and Questions\
**Tags:** accounts, jdbc-connector, sources, sailpoint-identity-security\
**Created:** [January 4, 2024, 9:20pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710 "2024-01-04T21:20:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephacciani](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@josephacciani](https://developer.sailpoint.com/discuss/u/josephacciani)\
**Post date:** [January 4, 2024, 9:20pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/1 "2024-01-04T21:20:07Z")

</div>

I am attempting to use the [delete accounts api](https://developer.sailpoint.com/idn/api/beta/delete-account) and it returns the below error code. The employee who the account belonged to is not longer with the organization and the account no longer exists but the JDBC source is holding onto the account. We need to get it removed so it doesn’t show up in certifications.

```auto
{
    "detailCode": "400.1 Bad request content",
    "trackingId": "aea8374f8c5d47109773cd5aa32b0ac9",
    "messages": [
        {
            "locale": "und",
            "localeOrigin": "REQUEST",
            "text": "The request was syntactically correct but its content is semantically invalid."
        },
        {
            "locale": "en-US",
            "localeOrigin": "DEFAULT",
            "text": "The request was syntactically correct but its content is semantically invalid."
        }
    ],
    "causes": []
}

```

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [January 5, 2024, 2:20pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/2 "2024-01-05T14:20:53Z")

</div>

With wich tool to test account deletion ?

It’s work perfectly for me.

---

<div class="post-metadata">

**Author:** ![josephacciani](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@josephacciani](https://developer.sailpoint.com/discuss/u/josephacciani)\
**Post date:** [January 5, 2024, 2:42pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/3 "2024-01-05T14:42:17Z")

</div>

Postman, Powershell and the new option on the API page

---

<div class="post-metadata">

**Author:** ![zachm117](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zachm117/32/3883_2.png) [@zachm117](https://developer.sailpoint.com/discuss/u/zachm117)\
**Post date:** [January 8, 2024, 3:36pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/4 "2024-01-08T15:36:11Z")

</div>

Hi Joseph!

I can’t say exactly what the issue could be without seeing the request that is being sent, but here are some suggestions:

1. Confirm the accountId you are trying to delete exists by searching for it on /accounts/:id

2. Confirm you are not sending a body with this API request. This endpoint does not require a body, just the accountID in the URL. The error could mean you are including a body in your request that is not expected.

3. Instead of trying to delete the account, you could try an unoptimized aggregation. If the account is no longer on the source, this should delete it from IDN.

Please let me know if this helps!

- Zach

---

<div class="post-metadata">

**Author:** ![josephacciani](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@josephacciani](https://developer.sailpoint.com/discuss/u/josephacciani)\
**Post date:** [January 9, 2024, 7:41pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/5 "2024-01-09T19:41:41Z")

</div>

1. Confirmed that the accountId does exist.
2. Nothing is in the body of the request.
3. Have run a few unoptimized aggregations and the accounts still show up.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [March 9, 2024, 7:41pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/6 "2024-03-09T19:41:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [March 13, 2024, 2:07pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/7 "2024-03-13T14:07:45Z")

</div>



---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [March 13, 2024, 2:09pm UTC](https://developer.sailpoint.com/discuss/t/cant-delete-uncorrelated-account-from-source/23710/8 "2024-03-13T14:09:06Z")

</div>

The [delete-account | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/v3/delete-account) API only works on delimited file sources. There is a replacement being made available for the private api /api/account/remove that will be available end of March. Please see this topic for updates on when that endpoint is available. This new endpoint should work to remove any account for any source type.

> [@POST /api/account/remove](https://developer.sailpoint.com/discuss/t/post-api-account-remove/28150):
>
> Replaced by:
