When a collector is directly removed, its data still remain. So, what is the best way to remove a collector like it never collected?
What kind of collector is this?
It's Entitlement Collector.
What does it mean directly removed? Deleted directly from DB?
What I meant to say is clicking delete button on interface. I want to delete data both from interface and database. Is this possible?
When you delete an entitlement collector, the data (entitlement/app-roles) should be cleared from the relevant application
Sure, data disappear from relevant application. I also want to clear it from database. Is it possible? Is there any workflow or something useful? What is your suggested delete method?
Why do you need to delete something directly from the DB?
There is no need in that and it's not recommended.
Assume that the system deleted everything that is needed to be deleted after you deleted the collector from the GUI.
Thanks Boris. I need to make clear an issue too. If an application is deleted, are all of its collectors deleted properly? Or do I need to delete collectors one by one before deleting the application?
I usually remove the collectors and then the application.
I suspect the same deletion mechanism is applied when you delete the application directly (the system deletes the relevant collectors)
Note: Tested on 7.0.2 P3
Because a "best practice" is asked for here, I would do the same as Boris. Or in other words, I would try to manually remove all dependencies in the order that creates the least amount of dependency trees for each operation (if something goes wrong it is easier then to fix.
Of course the removal of the application "should" remove all dependencies... but if a bug comes back (which often is the case) stuff could not be cleaned out, or as said in the beginning: if anything goes wrong in the cleanup, it will be hard to see what went wrong.
But again: If you have never even used the collector, there is no problem in just deleting the Application. Worst case (if a bug show up) you will end up with a collector that references to an application that is not there (that application reference will show up like a number)
Retrieving data ...