StringBuffer:delete(start, length)

Delete length bytes out of a StringBuffer starting at the given start position. If start is negative it is used as an offset from the end of the StringBuffer instead of the beginning.

Example

sb = StringBuffer.new()
sb:append('foobar')
sb:delete(4,6)