flask_taxonomies/views/taxonomy.py
def delete_taxonomy(code=None):
    """
    Deletes a taxonomy.

    Note: this call is destructive in a sense that all its terms, regardless if used or not,
    are deleted as well. A tight user permissions should be employed.
    """
    try:
        tax = current_flask_taxonomies.get_taxonomy(code=code)
    except NoResultFound:
        json_abort(404, {})
        return  # make pycharm happy

    current_flask_taxonomies.permissions.taxonomy_delete.enforce(request=request, code=code)
    current_flask_taxonomies.delete_taxonomy(tax)
    current_flask_taxonomies.commit()
    return Response(status=204)

    Deletes a taxonomy.

    Note: this call is destructive in a sense that all its terms, regardless if used or not,
    are deleted as well. A tight user permissions should be employed.
    
Deletes a taxonomy.
Note: this call is destructive in a sense that all its terms, regardless if used or not,
are deleted as well. A tight user permissions should be employed.
Deletes a taxonomy . Note : this call is destructive in a sense that all its terms regardless if used or not are deleted as well . A tight user permissions should be employed .
def delete_taxonomy(code=None):
    try:
        tax = current_flask_taxonomies.get_taxonomy(code=code)
    except NoResultFound:
        json_abort(404, {})
        return  
    current_flask_taxonomies.permissions.taxonomy_delete.enforce(request=request, code=code)
    current_flask_taxonomies.delete_taxonomy(tax)
    current_flask_taxonomies.commit()
    return Response(status=204)
def delete_taxonomy ( code = None ) : try : tax = current_flask_taxonomies . get_taxonomy ( code = code ) except NoResultFound : json_abort ( 404 , { } ) return current_flask_taxonomies . permissions . taxonomy_delete . enforce ( request = request , code = code ) current_flask_taxonomies . delete_taxonomy ( tax ) current_flask_taxonomies . commit ( ) return Response ( status = 204 )
Deletes a taxonomy.
Deletes a taxonomy .
"""
    Deletes a taxonomy.

    Note: this call is destructive in a sense that all its terms, regardless if used or not,
    are deleted as well. A tight user permissions should be employed.
    """ # make pycharm happy
code