'.. http:delete:: /downloads/(string: infohash)
A DELETE request to this endpoint removes a specific download from Tribler. You can specify whether you only
want to remove the download or the download and the downloaded data using the remove_data parameter.
**Example request**:
.. sourcecode:: none
curl -X DELETE http://localhost:8085/download/4344503b7e797ebf31582327a5baae35b11bda01
--data "remove_data=1"
**Example response**:
.. sourcecode:: javascript
{"removed": True}'

def render_DELETE(self, request):

    parameters = http.parse_qs(request.content.read(), 1)
    if (('remove_data' not in parameters) or (len(parameters['remove_data']) == 0)):
        request.setResponseCode(http.BAD_REQUEST)
        return json.dumps({'error': 'remove_data    parameter    missing'})
    download = self.session.get_download(self.infohash)
    if (not download):
        return DownloadSpecificEndpoint.return_404(request)
    remove_data = (parameters['remove_data'][0] == '1')
    self.session.remove_download(download, remove_content=remove_data)
    return json.dumps({'removed': True})
