Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
akurtasanov
Contributor

The best way to remove unused domain objects?

Good day.

Is there a universal way to delete unused domain objects? I need to delete several hundred.

0 Kudos
16 Replies
Alex-
MVP Silver
MVP Silver

You could use the Objects Explorer to show unused objects, filter on domain objects and delete them all.

Or use the "show-unused-objects" Management API endpoint, filter the output on object type, list and delete the relevant objects accordingly if you're in an automated environment.

0 Kudos
akurtasanov
Contributor

The problem is that domains are not tracked by this functionality.

0 Kudos
CaseyB
Advisor

I am told it supposed to work for un-used objects; however, it is bugged. I think it is on the low priority list for fixes sadly. The response I have for it was back in January 2025.

0 Kudos
the_rock
MVP Platinum
MVP Platinum

It can be little finnicky...

Best,
Andy
0 Kudos
the_rock
MVP Platinum
MVP Platinum

Good question...let me do some tests in the lab in the morning and will update you.

Best,
Andy
akurtasanov
Contributor

Thanks.

Will wait.

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Will let you know soon.

Best,
Andy
0 Kudos
the_rock
MVP Platinum
MVP Platinum

Just checked and it is there, in object explorer.

Screenshot_1.png

Best,
Andy
0 Kudos
Alex-
MVP Silver
MVP Silver

If you switch from "All" to "Unused Objects" in the top left, you will notice that Domains are not listed.

So, another approach might be to list their name/uid with an API call, and iterate that list against the "where-used" endpoint.

Those which aren't used can be saved in a list and another automation could delete them after some verifications.

the_rock
MVP Platinum
MVP Platinum

Correct, but they are definitely listed there.

Best,
Andy
0 Kudos
akurtasanov
Contributor

I see all my 3109 domains in Object Explorer but none of them in Unused Objects. And I defenetly know and also see that most of them are not in use.

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Can you not delete them from there then? I know it would be way better if they show in unused objects. I will try do some more testing for this tomorrow in the lab.

Best,
Andy
0 Kudos
akurtasanov
Contributor

Screenshot 2025-11-28 164625.png
I did some testing on LAB GW. Same result.

0 Kudos
the_rock
MVP Platinum
MVP Platinum

So you only see 1 unused, but you are saying there is way more than that?

Best,
Andy
0 Kudos
AkosBakos
MVP Silver
MVP Silver

Hi,

A little bit off, but Algosec can do it semaless 🙂

Akos

----------------
\m/_(>_<)_\m/
the_rock
MVP Platinum
MVP Platinum

Never considered that.

Best,
Andy
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events