Remove file

def filebrowser_remove_file(request, item_id, file_type):
    """ Remove file """
    fobj = get_object_or_404(FileBrowserFile, file_type=file_type, id=item_id)
    fobj.delete()
    
    if file_type == 'doc':
        return HttpResponseRedirect(reverse('mce-filebrowser-documents'))
    
    return HttpResponseRedirect(reverse('mce-filebrowser-images'))