# Unable to remove all accounts from a source

**URL:** <https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [October 31, 2025, 9:34pm UTC](https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914 "2025-10-31T21:34:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rk\_cyd](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@rk\_cyd](https://developer.sailpoint.com/discuss/u/rk_cyd)\
**Post date:** [October 31, 2025, 9:34pm UTC](https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914/1 "2025-10-31T21:34:32Z")

</div>

Hello, I am trying to reset the accounts and entitlements from an Azure AD source. I was able to remove all the entitlements from the source successfully but when I tried to execute the API /sources/:id/remove-accounts, I am getting the below error

**“Source Owners account exists on source”.**

I ensured that the owner name listed for the source doesn’t have an account in the Azure AD source. How do I remove all the accounts from the Azure AD source ?

BTW, I also tried it through the VSCode extension but the extension is also giving an error when I try to reset the source or accounts. It only works for entitlements.

Thanks

RK

---

<div class="post-metadata">

**Author:** ![kalyan\_dev32](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kalyan_dev32/32/21870_2.png) [@kalyan\_dev32](https://developer.sailpoint.com/discuss/u/kalyan_dev32)\
**Post date:** [November 1, 2025, 1:56am UTC](https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914/2 "2025-11-01T01:56:44Z")

</div>

Hey @rk_cyd ,

This error happens when **any** identity that owns **any** source in the tenant also has an account on the source you are trying to reset. It is a platform restriction. See prior discussion confirming the behavior and two workarounds

> [@Remove Source Accounts API: Can't remove if any Source Owner has an account](https://developer.sailpoint.com/discuss/t/remove-source-accounts-api-cant-remove-if-any-source-owner-has-an-account/89052):
>
> I have to change the Account ID for the Account Schema of a source in development that has already had accounts aggregated into it. Based on the warning, my plan was to use the Remove Source Accounts endpoint to remove all accounts, then modify the schema to be correct, then re-aggregate the accounts. The documentation for the endpoint is here: [delete-accounts-async | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/v2024/delete-accounts-async) When I run this, adding the ID of the source, I am getting the following error:

Run this query to find all identities who own one or more sources:

```auto

_exists_:owns.sources

```

thanks

---

<div class="post-metadata">

**Author:** ![selvasanthosh](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@selvasanthosh](https://developer.sailpoint.com/discuss/u/selvasanthosh)\
**Post date:** [November 1, 2025, 7:34pm UTC](https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914/3 "2025-11-01T19:34:57Z")

</div>

Hi @rk_cyd ,

You have to remove the source owner’s account from the source.

Go to accounts and remove the source owner account from the accounts.

You can do the Reset Accounts easily in Vs code ISC extention.

---

<div class="post-metadata">

**Author:** ![rk\_cyd](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@rk\_cyd](https://developer.sailpoint.com/discuss/u/rk_cyd)\
**Post date:** [November 4, 2025, 3:43am UTC](https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914/4 "2025-11-04T03:43:35Z")

</div>

Thank you. This trick worked.

I executed the API call /sources/:id/remove-accounts. The error message showed a bunch of IDs. I took each of these IDs and searched for the identities. For each identity, I removed the account from the source I wanted to reset. That did the trick.

---

<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:** [January 3, 2026, 3:43am UTC](https://developer.sailpoint.com/discuss/t/unable-to-remove-all-accounts-from-a-source/186914/5 "2026-01-03T03:43:45Z")

</div>

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