final String index = request.hasParam("index") ? request.param("index") : "solr";
final String type = request.hasParam("type") ? request.param("type") : "docs";
// create the delete request object
DeleteRequest deleteRequest = new DeleteRequest(index, type, getId(id));
deleteRequest.parent(request.param("parent"));
// TODO: this was causing issues, do we need it?
// deleteRequest.version(RestActions.parseVersion(request));
// deleteRequest.versionType(VersionType.fromString(request.param("version_type"),
// deleteRequest.versionType()));