'This does not actually delete the file, only the database record.  But
that is easy to implement.'

def delete(self, request, *args, **kwargs):

    self.object = self.get_object()
    self.object.delete()
    if request.is_ajax():
        response = JSONResponse(True, {}, response_content_type(self.request))
        response['Content-Disposition'] = 'inline;    filename=files.json'
        return response
    else:
        return HttpResponseRedirect(reverse('data_upload_new'))
