nastra commented on code in PR #6073: URL: https://github.com/apache/iceberg/pull/6073#discussion_r1008118659
########## core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java: ########## @@ -223,8 +223,20 @@ public boolean dropTable(SessionContext context, TableIdentifier identifier) { } @Override - public boolean purgeTable(SessionContext context, TableIdentifier ident) { - throw new UnsupportedOperationException("Purge is not supported"); + public boolean purgeTable(SessionContext context, TableIdentifier identifier) { + checkIdentifierIsValid(identifier); + + try { + client.delete( + paths.table(identifier), + ImmutableMap.of("purgeRequested", "true"), Review Comment: that's the name of the query param according to https://github.com/apache/iceberg/blob/master/open-api/rest-catalog-open-api.yaml#L653 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org