'Will populate objs_to_delete with data from request input.
:params req: a Swob request
:returns: a list of the contents of req.body when separated by newline.
:raises HTTPException: on failures'

def get_objs_to_delete(self, req):

    line = ''
    data_remaining = True
    objs_to_delete = []
    if ((req.content_length is None) and (req.headers.get('transfer-encoding', '').lower() != 'chunked')):
        raise HTTPLengthRequired(request=req)
    while data_remaining:
        if ('\n' in line):
            (obj_to_delete, line) = line.split('\n', 1)
            obj_to_delete = obj_to_delete.strip()
            objs_to_delete.append({'name': unquote(obj_to_delete)})
        else:
            data = req.body_file.read(self.max_path_length)
            if data:
                line += data
            else:
                data_remaining = False
                obj_to_delete = line.strip()
                if obj_to_delete:
                    objs_to_delete.append({'name': unquote(obj_to_delete)})
        if (len(objs_to_delete) > self.max_deletes_per_request):
            raise HTTPRequestEntityTooLarge(('Maximum    Bulk    Deletes:    %d    per    request' % self.max_deletes_per_request))
        if (len(line) > (self.max_path_length * 2)):
            raise HTTPBadRequest('Invalid    File    Name')
    return objs_to_delete
