Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove all records of the table in Hybris?

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.

like image 792
Namu Avatar asked Apr 24 '18 10:04

Namu


1 Answers

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

like image 73
HybrisHelp Avatar answered Oct 19 '22 15:10

HybrisHelp