code: def delete(self, accountId):
          
          acct = BaseAccount.get(accountId)
          if not acct:
              raise Exception('No such account found')
  
          acct.delete()
          auditlog(event='account.delete', actor=session['user'].username, data={'accountId': accountId})
  
          return self.make_response('Account deleted')
docs: Delete an account