cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove data from a specific item type

bidyadhar_tripathy
Participant
0 Kudos

Hi All,

We have a CustomB2BUnit type derived from B2BUnit type and we need to remove all CustomB2BUnit data and its relations from db.

If we use sql query to delete the data then relations (Principal2PrincipalGroup) are not getting removed.

So Is there any groovy/impex script to remove data from a specific item type ?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member620692
Active Contributor

Hi - you can try something like

 REMOVE CustomB2BUnit[batchmode=true];itemtype(code)[unique=true]
 ;CustomB2BUnit
bidyadhar_tripathy
Participant
0 Kudos

Hi Arvind,

Thank you for your response. I tried your example and it is working fine.

former_member620692
Active Contributor
0 Kudos

You are most welcome.

Answers (0)