How to remove all records of the table in Hybris?

Namu :

In my development environment, I have added wrong data to my custom ItemType. Now I want to remove all data for that Type. Basically I want to truncate my ItemType table.

HybrisHelp :

Run the below Impex (Change MyItemType with your ItemType)

$targetType=MyItemType
REMOVE $targetType[batchmode=true];itemtype(code)[unique=true]
;$targetType

You can also run SQL query from HAC, refer this post for more detail

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=476062&siteId=1