(request:HttpRequest, project_id=None)
return JsonResponse({'deleted_link': ccid})
Removes one class-class link for a given project. Which link
    gets removed is determined by the ID passed in the POST data.
Removes one class-class link for a given project. Which link
    gets removed is determined by the ID passed in the POST data.
Removes one class - class link for a given project . Which link gets removed is determined by the ID passed in the POST data .
def remove_link_from_ontology(request:HttpRequest, project_id=None) -> JsonResponse:
    """ Removes one class-class link for a given project. Which link
    gets removed is determined by the ID passed in the POST data.
    """
    ccid = int(request.POST.get('ccid', -1))
    link = get_object_or_404(ClassClass, id=ccid)
    link.delete()
    return JsonResponse({'deleted_link': ccid})
def remove_link_from_ontology ( request : HttpRequest , project_id = None ) -> JsonResponse : ccid = int ( request . POST . get ( 'ccid' , - 1 ) ) link = get_object_or_404 ( ClassClass , id = ccid ) link . delete ( ) return JsonResponse ( { 'deleted_link' : ccid } )