How to remove all elements fromTArray

Hi!
I want to complelety clear an array in c++. I found .Remove() and .RemoveAll() functions but I don’t understand how to use them.

Remove function looks like this:
int32 Remove(cost Element Type Item)

but IntelliSense suggests FVector to &Item parameter.
What’s going on with this?

2 Likes

myTArray.Empty();

1 Like

TArray Api
TArray docs
About performance with TArray
Some common info