<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete(self, reason=None):
 """Delete the user's account from Todoist. .. warning:: You cannot recover the user after deletion! :param reason: The reason for deletion. :type reason: str """

        response = API.delete_user(self.api_token, self.password,
                                   reason=reason, in_background=0)
        _fail_if_contains_errors(response)