How to deactivate Entities permanently?

rm231
Tera Contributor

Hello all, I tried to deactivate demo entities in my instances. But after a few minutes or so, the entities come back and active. How to deactivate the entities permanently? Advanced thanks!

8 REPLIES 8

Community Alums
Not applicable

HI @rm23 ,

Please look into the sn_grc_item_generation table. Set the 'running' status to complete for the entity part of the entity type you are cleaning up.

Also, refer to this thread :https://community.servicenow.com/community?id=community_question&sys_id=a564fe3fdb9858102be0a851ca96...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Community Alums
Not applicable

Thanks, Sandeep. sn_grc_item_generation is empty in my instance. What is the workaround for this? Advanced thanks!

Hello @Community Alums and @Community Alums , I'm in the same boat currently. sn_grc_item_generation table is empty, but when I delete the Entity record it gets regenerated by "GRC audit daily data run" scheduled job or "GRC Daily scheduled data collection job"

 

Do either of you know how I can delete the Entity record permanently without it being generated with the next scheduled job run?

Community Alums
Not applicable

Hi @rm231 ,

Hi @gk93 ,

 Even if you delete it from Entities, it won't get deleted as you have to delete it from the source table.

As if you can check on Entity filter, you are using a  table where your entities are coming from. So, to meet your requirement, either you delete it from the table itself(which is not recommended as you might be using that somewhere else) or second approach is you can limit it in the entity filter itself.