How can I drop all data of a Type

#1

I have a type into which I have loaded a lot of data and I want to purge it entirely.
Right now I am using Type.removeAll() but it is very slow.

Is there a way to clear out all of a type’s contents?

Maybe something similar to DROP table and CREATE table in SQL.

0 Likes

#2

I think you want Type.removeAll().

0 Likes

#3

That is to say, [YOURTYPE].removeAll(), not literally Type.removeAll().

0 Likes

#4

I meant something much faster than removeAll()

  • I updated the original question
0 Likes

#5

c3ShowFunk(Persistable, "removeAll")
Remove all has some arguments that may speed it up Type.removeAll(removeFilter, allowMultiRowProcessing)

Type.removeAll(null, true) is faster than Type.removeAll()

0 Likes