twuebi commented on issue #570:
URL: https://github.com/apache/iceberg-go/issues/570#issuecomment-3318121278

   You should be able to use `catalog::PurgeTable` instead:
   
   ```go
   func (r *Catalog) PurgeTable(ctx context.Context, identifier 
table.Identifier) error {
        ns, tbl, err := splitIdentForPath(identifier)
        if err != nil {
                return err
        }
   
        uri := r.baseURI.JoinPath("namespaces", ns, "tables", tbl)
        v := url.Values{}
        v.Set("purgeRequested", "true")
        uri.RawQuery = v.Encode()
   
        _, err = doDelete[struct{}](ctx, uri, []string{}, r.cl,
                map[int]error{http.StatusNotFound: catalog.ErrNoSuchTable})
   
        return err
   }
   ```


-- 
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

Reply via email to