code: def delete(self, reason=None):
          
          response = API.delete_user(self.api_token, self.password,
                                     reason=reason, in_background=0)
          _fail_if_contains_errors(response)
docs: Delete the user's account from Todoist.
  
          .. warning:: You cannot recover the user after deletion!
  
          :param reason: The reason for deletion.
          :type reason: str
  
          >>> from pytodoist import todoist
          >>> user = todoist.login('john.doe@gmail.com', 'password')
          >>> user.delete()
          ... # The user token is now invalid and Todoist operations will fail.