Clear Sheet

Clears the content of the specified sheet. Header information can optionally be kept.


⬅️INPUT

Parameter

Type

Required

Description

FilePath

String

✅ Yes

Excel file path

Data

Byte[]

✅ Yes

Excel binary data

SheetName

String

❌ No

Name of the sheet to clear

KeepHeaderInformation

Boolean

❌ No

Whether to keep the header row


➡️OUTPUT

Output

Type

Description

IsClearSheetSuccessful

Boolean

Whether the operation succeeded

ClearSheetMessage

String

Result message

ClearSheetResult

Byte[]

Cleared Excel file


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".