Go has no built-in delete for slices. Remove elements by reconstructing the slice:
s := []int{1, 2, 3, 4, 5}
i := 2 // remove element at index 2
s = append(s[:i], s[i+1:]...)
// s is now [1, 2, 4, 5]
This creates a new slice from elements before and after the removed index. The underlying array still contains the old data, but the slice no longer sees it.