def METHOD_NAME(self, num):
    """
    Deletes the account number **num**.
    """
    self.accounts['default'] = None
    del self.accounts['accounts'][num]
    # Reset index if there are no accounts left
    if not self.accounts['accounts']:
        self.accounts['next'] = 1
    self._save()