When are "pending delete" items actually deleted ?
Best Answers
-
damon_mulligan Cireson Consultant Advanced IT Monkey ✭✭✭They will never be deleted automatically. You need to go to Administration > Deleted Item and Remove the item. When you delete a CI in SCSM, it just gives it a status of "Pending Delete", and that for the most part, just removes it from most views. Need to "Remove" to really get rid of.
7 -
Tom_Hendricks Customer Super IT Monkey ✭✭✭✭✭You can delete them from Administration > Deleted Items in the SCSM console, or you could remove the objects using SMLets or the built-in powershell cmdlets (filter by the object status).
If you wanted this to occur in a more automated fashion, you could create a runbook in Orchestrator/SMA and schedule it to occur whenever suits you.
I believe it would also be possible to create an override in a management pack that changes the job schedule/frequency within SCSM itself (remember that SCSM has the same inner workings as SCOM and therefore the concept of an override is a valid one). I am afraid that I do not have any examples of this readily available, however.
6
Answers
If you wanted this to occur in a more automated fashion, you could create a runbook in Orchestrator/SMA and schedule it to occur whenever suits you.
I believe it would also be possible to create an override in a management pack that changes the job schedule/frequency within SCSM itself (remember that SCSM has the same inner workings as SCOM and therefore the concept of an override is a valid one). I am afraid that I do not have any examples of this readily available, however.
Keeping the deleted items trim really helps your relationship DB. but the warning is that if the SCSM Management servers get deleted (someone who will not be named analyst(Not me )) and then cleared from pending delete will break your farm.
We run a script on a weekly basis to make sure its trim but includes a variable to not delete the management servers.
See attached script we received from MS
Just update lines
@Stephane_Bouillon There is on thing I would be careful about if you do create an automated job to remove. Make sure there is a check in there to not remove any Windows Computer CI's that are part of your System Center environment. I have seen 2 instances where for some reason the SCSM Server CI was deleted and removed. Which of course stopped everything from working.