Fastest way of resetting a vector

For a vector a=collect(1:1000), what is the fastest way to reset it? Currently, I only have one solution:

a=collect(1:1000)
deleteat!(a, 1:length(a))

empty!(a)

2 Likes

Wow, Thanks. I didn’t know this function before.