delete the last 3 indexes in golang code example Example: golang remove last item from slice slice = slice[:len(slice)-1]