def delete_account(api, account) -> Box:
    'Delete account.\n\n    :param api: api\n    :param account: account\n    :raises RuntimeError: if account have undeleted studies\n    '
    try:
        QueryO(api=api, url='/account/delete/', request_data={'uuid': account.uuid}, errors_mapping={'NOT_EMPTY': NotEmpty()}, required_sid=True).get()
    except NotEmpty:
        acc_studies = account_studies(api, account)
        raise RuntimeError('Account have undeleted studies:\n{studies}'.format(studies='\n'.join([str((study.uuid, study.study_uid)) for study in acc_studies])))
Delete account.

:param api: api
:param account: account
:raises RuntimeError: if account have undeleted studies
def delete_account(api, account) -> Box:
    'Delete account.\n\n    :param api: api\n    :param account: account\n    :raises RuntimeError: if account have undeleted studies\n    '
    try:
        QueryO(api=api, url='/account/delete/', request_data={'uuid': account.uuid}, errors_mapping={'NOT_EMPTY': NotEmpty()}, required_sid=True).get()
    except NotEmpty:
        acc_studies = account_studies(api, account)
        raise RuntimeError('Account have undeleted studies:\n{studies}'.format(studies='\n'.join([str((study.uuid, study.study_uid)) for study in acc_studies])))