# Endpoint for 'remove account'

**URL:** <https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686>\
**Category:** SHF Discussion and Questions\
**Created:** [June 16, 2022, 8:46pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686 "2022-06-16T20:46:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wvandeus](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wvandeus](https://developer.sailpoint.com/discuss/u/wvandeus)\
**Post date:** [June 16, 2022, 8:46pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/1 "2022-06-16T20:46:12Z")

</div>

First time posting here, forgive me if I should be posting on compass or somewhere else instead of here, just let me know.

But I have a source, with a bunch of accounts, in my IDN tenant.  
The accounts aggregated and correlated to identities.  
Later on - I fully deleted the accounts, at the source (direct connection type, AD)  
I’ve run several aggregations, with optimization turned off… but the identities still show the accounts Enabled and correlated to the identities.

Is there a rest API where I can at least “remove account”?  
I don’t necessarily want to entirely delete the source.  
I don’t necessarily want to delete the identities either.  
I just want the identities to reflect correctly without having to click the button in the UI, one-by-one.

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/e9cbe8b136fc7e7365e98ecdaf6b7af7ecfd95c7.jpeg)

---

<div class="post-metadata">

**Author:** ![briane\_bullock](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@briane\_bullock](https://developer.sailpoint.com/discuss/u/briane_bullock)\
**Post date:** [June 16, 2022, 9:23pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/2 "2022-06-16T21:23:32Z")

</div>

Did your aggregations complete successfully? Check to make sure your Account Delete Threshold is set appropriately to allow the deletes. You should see a warning on the aggregation completion status to alert you if this is the issue.

---

<div class="post-metadata">

**Author:** ![wvandeus](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wvandeus](https://developer.sailpoint.com/discuss/u/wvandeus)\
**Post date:** [June 17, 2022, 12:49pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/3 "2022-06-17T12:49:51Z")

</div>

I think my issue was BECAUSE I ran the aggregation with optimization turned off.  
A normal aggregation, seemed to cleanup the accounts today.

---

<div class="post-metadata">

**Author:** ![wvandeus](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wvandeus](https://developer.sailpoint.com/discuss/u/wvandeus)\
**Post date:** [June 17, 2022, 12:50pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/4 "2022-06-17T12:50:31Z")

</div>

Original

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/0dd33cbaa14024e3660deb17226ea9ad610c795e.png)

---

<div class="post-metadata">

**Author:** ![wvandeus](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wvandeus](https://developer.sailpoint.com/discuss/u/wvandeus)\
**Post date:** [June 17, 2022, 12:51pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/5 "2022-06-17T12:51:01Z")

</div>

Cleaned up about 500 accounts and ran aggregation with optimization turned off (but it didn’t remove the deleted accounts)

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/1695221fd691e2d111d2dc9daeff14931cda2460.png)

---

<div class="post-metadata">

**Author:** ![wvandeus](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wvandeus](https://developer.sailpoint.com/discuss/u/wvandeus)\
**Post date:** [June 17, 2022, 12:51pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/6 "2022-06-17T12:51:42Z")

</div>

Tried again (but it didn’t remove the deleted accounts)

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/f43a8a6b4b8eaf719d11074d664cd3926ea58273.png)

---

<div class="post-metadata">

**Author:** ![wvandeus](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@wvandeus](https://developer.sailpoint.com/discuss/u/wvandeus)\
**Post date:** [June 17, 2022, 12:52pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/7 "2022-06-17T12:52:23Z")

</div>

Next morning, regularly scheduled aggregation with optimization on – everything cleaned up

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/a65c47de8c9c3327f07d5442eb1b4a7ddf35a784.png)

---

<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:** [July 19, 2023, 2:23pm UTC](https://developer.sailpoint.com/discuss/t/endpoint-for-remove-account/4686/8 "2023-07-19T14:23:13Z")

</div>


