# Remove all Identity accounts for an application

**URL:** <https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797>\
**Category:** IIQ Discussion and Questions\
**Tags:** accounts, identityiq\
**Created:** [December 17, 2024, 11:57am UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797 "2024-12-17T11:57:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishavghoshacc](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rishavghoshacc](https://developer.sailpoint.com/discuss/u/rishavghoshacc)\
**Post date:** [December 17, 2024, 11:57am UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/1 "2024-12-17T11:57:34Z")

</div>

Hi all,

Is there a best way to remove all Identity accounts for an application from IdentityIQ?

We have a requirement to decommission an application from our environment.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [December 17, 2024, 12:01pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/2 "2024-12-17T12:01:06Z")

</div>

you can remove the application directly from debug, it will delete all the account related on this app

---

<div class="post-metadata">

**Author:** ![bhoyars\_1](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@bhoyars\_1](https://developer.sailpoint.com/discuss/u/bhoyars_1)\
**Post date:** [December 17, 2024, 2:43pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/3 "2024-12-17T14:43:57Z")

</div>

Hello @rishavghoshacc  
you can delete the application directly using iiq console command.(Using Devsak)  
Query: iiqDelete application appname

---

<div class="post-metadata">

**Author:** ![Arun-Kumar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/arun-kumar/32/15128_2.png) [@Arun-Kumar](https://developer.sailpoint.com/discuss/u/Arun-Kumar)\
**Post date:** [December 17, 2024, 2:52pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/4 "2024-12-17T14:52:11Z")

</div>

Hi @bhoyars_1 ,

The correct command to delete the application object from IIQ console is

```auto
delete application <app name or ID>

```

This will removes all of its owned, or subordinate, objects.  
@rishavghoshacc ,

You can delete the application using either the debug option or the IIQ console option.

---

<div class="post-metadata">

**Author:** ![rishavghoshacc](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rishavghoshacc](https://developer.sailpoint.com/discuss/u/rishavghoshacc)\
**Post date:** [December 19, 2024, 12:36pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/5 "2024-12-19T12:36:56Z")

</div>

@enistriminsait - Is there a way to remove the accounts without removing the application?

---

<div class="post-metadata">

**Author:** ![rishavghoshacc](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rishavghoshacc](https://developer.sailpoint.com/discuss/u/rishavghoshacc)\
**Post date:** [December 19, 2024, 12:37pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/6 "2024-12-19T12:37:12Z")

</div>

@Arun-Kumar Is there a way to remove the accounts without removing the application?

---

<div class="post-metadata">

**Author:** ![rishavghoshacc](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rishavghoshacc](https://developer.sailpoint.com/discuss/u/rishavghoshacc)\
**Post date:** [December 19, 2024, 12:37pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/7 "2024-12-19T12:37:21Z")

</div>

@bhoyars_1 Is there a way to remove the accounts without removing the application?

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [December 19, 2024, 12:59pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/8 "2024-12-19T12:59:49Z")

</div>

you can use a rule where search all the accounts of an application and remove very single object

---

<div class="post-metadata">

**Author:** ![iamksatish](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iamksatish/32/26217_2.png) [@iamksatish](https://developer.sailpoint.com/discuss/u/iamksatish)\
**Post date:** [December 20, 2024, 4:01pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/9 "2024-12-20T16:01:38Z")

</div>

@rishavghoshacc

Just write a dummy customization rule and return null and within your aggregation job make sure detect deleted accounts is selected

---

<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:** [February 18, 2025, 4:01pm UTC](https://developer.sailpoint.com/discuss/t/remove-all-identity-accounts-for-an-application/93797/10 "2025-02-18T16:01:55Z")

</div>

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