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

Purge all non-system created objects

Hello,

I've deployed a stand-alone management server for testing on an eval license.

I've been testing the export and import of objects from our existing SMS to this test instance using the mgmt api and bash scripts. 

I want to return the number of objects on the test management server to it's default state i.e. default out-of-the-box system created objects only.

Does anyone have a script that will purge all non-system created objects from the server? 

Is there a way to revert the SMS to a default state?

Or would you suggest simply redeploying a new instance? 

Regards,

Simon

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

Theoretically, you could script the removal of any object not created by System.
However, I’ve never seen anyone share such a script.
Deploying a new management instance is pretty easy, also (and it includes another 15-day PnP license).