title: How to delete the complete spreadsheet using gspread, python
body: <p>This is my code to take attendance of my pals who <strong>did not</strong> attend the meeting in google meet. </p>
  
  <p>we use organisation email, so everyone have their names as their roll numbers.</p>
  
  <p>Using <strong>Meet Attendance</strong> extension roll numbers(who are present) are noted in a spreadsheet.</p>
  
  <pre><code>import gspread
  from oauth2client.service_account import ServiceAccountCredentials
  
  scope = ["https://spreadsheets.google.com/feeds",
           "https://www.googleapis.com/auth/spreadsheets",
           "https://www.googleapis.com/auth/drive.file",
           "https://www.googleapis.com/auth/drive"]
  
  
  creds = ServiceAccountCredentials.from_json_keyfile_name('Client_secret.json', scope)
  
  client = gspread.authorize(creds)
  
  url = "Url of my SpreadSheet"
  sheet = client.open_by_url(url).sheet1
  
  # 66
  try:
      cell = sheet.find('566')
      pass
  except gspread.exceptions.CellNotFound:
      print('566 Absent')
  
  
  # 67
  try:
      cell = sheet.find('567')
      pass
  except gspread.exceptions.CellNotFound:
      print("567 Absent")
  
  # 68, etc...
  
  # ----------------------------------------------------
  # Code to delete the spreadsheet once the work is done.
  # ----------------------------------------------------
  </code></pre>
  
  <p>I am responsible to give the absentees roll numbers to the manager.</p>
  
  <p>Am trying to save my storage I cant manually delete the spreadsheet all the time, thats why I needed a code to delete complete spreadsheet using <code>gspread</code></p>