@RequestMapping(method = RequestMethod.DELETE, value = "/{query}")
  @Operation(summary = "delete parametrized query",
      description = "delete named, parametrized query by ID")
  @ApiResponses({@ApiResponse(responseCode = "200", description = "Deleted successfully."),
      @ApiResponse(responseCode = "401", description = "Invalid Username or Password."),
      @ApiResponse(responseCode = "403", description = "Insufficient privileges for operation."),
      @ApiResponse(responseCode = "404", description = "queryId does not exist."),
      @ApiResponse(responseCode = "500", description = "GemFire throws an error or exception")})
  @PreAuthorize("@securityService.authorize('DATA', 'WRITE')")
  public ResponseEntity<?> delete(@PathVariable("query") final String queryId) {
    logger.debug("Deleting a named, parametrized Query with ID ({}).", queryId);

    // delete the OQL statement with 'queryId' as the Key into the hidden,
    // ParameterizedQueries Region...
    deleteNamedQuery(PARAMETERIZED_QUERIES_REGION, queryId);
    compiledQueries.remove(queryId);
    return new ResponseEntity<>(HttpStatus.OK);
  }
Delete named, parametrized Query

@param queryId uniquely identify the query to be deleted
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/controllers/QueryAccessController.java