Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Delete all rows in Smartsheet using API call

Prateek93
✭✭
Hey,
I have a fairly large Smartsheet of about 500 rows which I am accessing through an API call.
Is there a way to delete all rows in the sheet using DELETE API request without mentioning all the row ids separately?
Tags:
Comments
-
There isn't a way to delete rows without passing row IDs to DELETE—it's a required parameter: https://smartsheet-platform.github.io/api-docs/#delete-rows
You could instead perform a GET sheet: https://smartsheet-platform.github.io/api-docs/#get-sheet
The sheet object contains a comma separated list of Row IDs, you could then pass that list to DELETE.
This discussion has been closed.