code: def delete(self):
          
          args = {'ids': [self.id]}
          _perform_command(self.project.owner, 'item_delete', args)
          del self.project.owner.tasks[self.id]
docs: Delete the task.
  
          >>> from pytodoist import todoist
          >>> user = todoist.login('john.doe@gmail.com', 'password')
          >>> project = user.get_project('Homework')
          >>> task = project.add_task('Read Chapter 4')
          >>> task.delete()