Skip to main content

Delete range

Delete the cells of a range and close the gap by moving cells up or left, or delete the whole rows or columns the range covers.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/excel_delete_range · 7 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Remote pathStringNoWorkbook path in the drive (e.g. Finance/budget.xlsx), or id:{item-id}.
SheetStringNoWorksheet name.
RangeStringYesRange address.
ShiftStringNoupMove the remaining cells up or left; entire_row or entire_column deletes the whole rows or columns of the range.
DriveStringNome/driveWhose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.