Remove tensor elements by indices

I want to remove some points from a batch of point cloud, that is given a batch of point cloud, [B, 3, N], and indices [B, M], I want to remove that part the indices referring to, and finally get the remaining point cloud [B, 3, N-M]

How to do this operation?