@RequestMapping(method = RequestMethod.DELETE, value = "/{region}")
  @Operation(summary = "delete all data or the specified keys",
      description = "Delete all in the region or just the specified keys")
  @ApiResponses({@ApiResponse(responseCode = "200", description = "OK"),
      @ApiResponse(responseCode = "401", description = "Invalid Username or Password."),
      @ApiResponse(responseCode = "403", description = "Insufficient privileges for operation."),
      @ApiResponse(responseCode = "404", description = "Region does not exist"),
      @ApiResponse(responseCode = "500", description = "if GemFire throws an error or exception")})
  public ResponseEntity<?> deleteAllOrGivenKeys(@PathVariable("region") String region,
      @RequestParam(value = "keys", required = false) final String[] encodedKeys) {
    logger.debug("Deleting all data in Region ({})...", region);

    region = decode(region);
    if (encodedKeys == null || encodedKeys.length == 0) {
      return deleteAllRegionData(region);
    } else {
      String[] decodedKeys = decode(encodedKeys);
      return deleteRegionKeys(region, decodedKeys);
    }
  }
Delete all data in region or just the given keys

@param region gemfire region
@param encodedKeys optional comma separated list of keys
@return JSON document containing result
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/controllers/CommonCrudController.java