I want to delete some of the elements of the tensor array

I want to delete some of the elements of the tensor array

Is there a function that can be
changed from
[1,2,3,4,5,6,7,8,9]
to
[6,7,8,9]
?

I think you could just slice the tensor via tensor[5:].

When you say delete, do you mean you want to choose a (continuous) subset of the initial array (meaning slicing solution by @ptrblck will help) or do you want to pick elements at random?