code: def delete_row(self, index):
          Deletes the row from the worksheet at the specified index.
  
          :param index: Index of a row for deletion.
          :type index: int
          """
          body = {
              "requests": [{
                  "deleteDimension": {
                      "range": {
                        "sheetId": self.id,
                        "dimension": "ROWS",
                        "startIndex": index - 1,
                        "endIndex": index
                      }
                  }
              }]
          }
  
          return self.spreadsheet.batch_update(body)
docs: Deletes the row from the worksheet at the specified index.
  
          :param index: Index of a row for deletion.
          :type index: int