Click or drag to resize

SheetRowResourcesDeleteRows Method

Deletes the Row specified in the URL.

It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/rows/{rowId}

Remarks
This operation will delete ALL child Rows of the specified Row.

Namespace:  Smartsheet.Api
Assemblies:   smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
  smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
Syntax
IList<long> DeleteRows(
	long sheetId,
	IEnumerable<long> ids,
	Nullable<bool> ignoreRowsNotFound
)

Parameters

sheetId
Type: SystemInt64
the sheetId
ids
Type: System.Collections.GenericIEnumerableInt64
the row IDs
ignoreRowsNotFound
Type: SystemNullableBoolean
If set to true, specifying row Ids that do not exist within the source sheet will not cause an error response. If omitted or set to false, specifying row Ids that do not exist within the source sheet will cause an error response (and no rows will be copied).

Return Value

Type: IListInt64
Row IDs corresponding to all rows that were successfully deleted (including any child rows of rows specified in the URL).
Exceptions
ExceptionCondition
InvalidOperationException if any argument is null or empty string
InvalidRequestException if there is any problem with the REST API request
AuthorizationException if there is any problem with the REST API authorization (access token)
ResourceNotFoundException if the resource cannot be found
ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
SmartsheetException if there is any other error during the operation
See Also