Skip to main content
1-Visitor
March 2, 2012
Question

Is there any way we can delete the Latest Iterations of a part? batch removal

  • March 2, 2012
  • 3 replies
  • 2106 views

Hi All,

I have updated obsolete information of 3000 parts(Business critical) by mistake. Now I want to rollback. Is it possible by a batch script like?

Please advise. Its very crucial for my company.Thanks in advance.

3 replies

1-Visitor
March 3, 2012

Can you not just use the Purge functionality for this?

1-Visitor
March 3, 2012

Hi Buddy ,

Correct, But I am trying to understanf if there is a way we can selectively remove iterations of a list of parts in a specific context. As when we did the wrong update, it effected some 5000 parts out of 15000, so when I use purge manager I want to set criteria based on timestamp of last update, so that I can touch only those 5000 not the entire context. Is it possible?

We dont want to end up removing good data for all the other parts which were not iterated or changed.

I appreciate your advise on this.

18-Opal
March 27, 2017

Praveen,

You can certainly create a QuerySpec to find WTParts whose updatestampA2 is within a range of dates then loop thru the QueryResult deleting each WTPart returned in the query.

David