def remove(request, position_name, type, id):
    next = request.GET.get('next', '')
    position = get_object_or_404(Position, name__iexact=position_name)
        
    ctype = get_object_or_404(ContentType, pk=type)
    obj = ctype.get_object_for_this_type(id=id)
    
    removed_successfully = Position.objects.remove_object(position=position, obj=obj)
    if removed_successfully:
        update_histories(request, obj, position, DELETION)
    
    if not next:
        next = get_admin_url(obj)
        
    return HttpResponseRedirect(next)
Resolves the object by the specified content type and id, and removes it
dataset/ETHPy150Open callowayproject/django-kamasutra/positions/views.py/remove