Skip to main content
12-Amethyst
May 18, 2020
Solved

How to cleanup the server ?

  • May 18, 2020
  • 2 replies
  • 2491 views

Hi,

From an administrative point of view, i want to be able to reset my server to its initial state, i.e., i want to delete all things, mashups, thingTemplate, ThingShape etc ..

I did a service which returns all of my entities and call from a script "http DELETE" on all returned entities.

The problem i'm facing to is i have some dependencies between things. I tried to sort the list but  there are circular dependencies and it doesn't work.

Does anyone have an idea to achieve this ?

Best answer by slangley

Hi @cbaurand.

 

Per the case information, you were not looking to have the PTC Cloud team to reinitialize your ThingWorx instance, but were asking for an automated way to do so via the Composer.

 

As stated in the case, there is no mechanism within ThingWorx to provide this functionality.  If you would like to pursue this request, please post it on the ThingWorx Ideas forum for consideration in a future release.

 

If you agree with the information I have stated here, please mark this post as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon

2 replies

22-Sapphire I
May 18, 2020

Initially the Thingworx installer came with an SQL script to reset everything.

One other way would be to create a snapshot/backup of the Persistence Provider and restore that.

On the Thingworx server side, you'd just need to clear the logs and File Repositories, perhaps also the extensions folder - Again this could be a snapshot as well.

cbaurand12-AmethystAuthor
12-Amethyst
June 2, 2020

 

Unfortunately we won't be able to run the script ourselves because the environments are hosted by Cloud...
Support
June 2, 2020

Hi @cbaurand.

 

If you're saying that PTC Cloud is hosting your environments, I will be happy to open a case to be assigned to the Cloud team for initializing your implementations.

 

Regards.

 

--Sharon

Support
June 2, 2020

Hi @cbaurand.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon