def delete_annotation_class(project, annotation_class):
    'Deletes annotation class from project\n\n    :param project: project name or metadata of the project\n    :type project: str or dict\n    :param project: annotation class name or  metadata\n    :type project: str or dict\n    '
    if (not isinstance(project, dict)):
        project = get_project_metadata(project)
    if (not isinstance(annotation_class, dict)):
        annotation_class = get_annotation_class_metadata(project, annotation_class)
    (team_id, project_id, name, class_id) = (_api.team_id, annotation_class['project_id'], annotation_class['name'], annotation_class['id'])
    logger.info('Deleting annotation class from project %s with name %s', project['name'], name)
    params = {'team_id': team_id, 'project_id': project_id}
    response = _api.send_request(req_type='DELETE', path=f'/class/{class_id}', params=params)
    if (not response.ok):
        raise SABaseException(response.status_code, ("Couldn't delete annotation class " + response.text))
Deletes annotation class from project

:param project: project name or metadata of the project
:type project: str or dict
:param project: annotation class name or  metadata
:type project: str or dict
def delete_annotation_class(project, annotation_class):
    'Deletes annotation class from project\n\n    :param project: project name or metadata of the project\n    :type project: str or dict\n    :param project: annotation class name or  metadata\n    :type project: str or dict\n    '
    if (not isinstance(project, dict)):
        project = get_project_metadata(project)
    if (not isinstance(annotation_class, dict)):
        annotation_class = get_annotation_class_metadata(project, annotation_class)
    (team_id, project_id, name, class_id) = (_api.team_id, annotation_class['project_id'], annotation_class['name'], annotation_class['id'])
    logger.info('Deleting annotation class from project %s with name %s', project['name'], name)
    params = {'team_id': team_id, 'project_id': project_id}
    response = _api.send_request(req_type='DELETE', path=f'/class/{class_id}', params=params)
    if (not response.ok):
        raise SABaseException(response.status_code, ("Couldn't delete annotation class " + response.text))