private void deleteRange(int minOffset, int maxOffset) throws IndexOutOfBoundsException {

		StackComponentWrapper dtc = getComponentContaining(minOffset);
		if (dtc == null) {
			return; // nothing to clear
		}

		int space = maxOffset - minOffset + 1;
		while (dtc != null && space > 0) {
			int ordinal = dtc.getOrdinal();
			int len = dtc.getLength();
			if (len <= space) {
				space -= len;
				delete(ordinal);
				int minOffsetLimit = parameterOffset - negativeLength;
				if (minOffset < minOffsetLimit) {
					minOffset = minOffsetLimit;
				}
			}
			else {
				// Must clear component to breakdown into undefined bytes
				clearComponent(ordinal);
			}
			dtc = getComponentContaining(minOffset);
		}
	}
Deletes the indicated range of bytes from this stack frame data type.

@param minOffset the range's minimum offset on the stack frame
@param maxOffset the range's maximum offset on the stack frame
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/stackeditor/StackFrameDataType.java