Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Updating orphan file deletion optimizer

Focus mode
Updating orphan file deletion optimizer - AWS Glue

You can modify the configuration for the orphan file deletion optimizer, such as changing the retention period for orphan files or the IAM role used by the optimizer using AWS Glue console, AWS CLI, or the UpdateTableOptimizer operation.

AWS Management Console
To update the orphan file deletion optimizer
  1. Choose Data Catalog and choose Tables. From the tables list, choose the table you want to update the orphan file deletion optimizer configuration.

  2. On the lower section of the Tables details page, choose Table optimization , and then choose Edit.

  3. On the Edit optimization page, make the desired changes.

  4. Choose Save.

AWS CLI

You can use the update-table-optimizer call to update the orphan file deletion optimizer in AWS Glue, you can use call. This allows you to modify the OrphanFileDeletionConfiguration in the icebergConfiguration field where you can specify the updated OrphanFileRetentionPeriodInDays to set the number of days to retain orphan files, to specify the Iceberg table location to delete orphan files from.

aws glue update-table-optimizer \ --catalog-id 123456789012 \ --database-name iceberg_db \ --table-name Iceberg_table \ --table-optimizer-configuration '{"roleArn":"arn:aws:iam::123456789012:role/optimizer_role","enabled":true, "vpcConfiguration":{"glueConnectionName":"glue_connection_name"},"orphanFileDeletionConfiguration":{"icebergConfiguration":{"orphanFileRetentionPeriodInDays":5}}}' \ --type orphan_file_deletion
API

Call the UpdateTableOptimizer operation to update the orphan file deletion optimizer for a table.

To update the orphan file deletion optimizer
  1. Choose Data Catalog and choose Tables. From the tables list, choose the table you want to update the orphan file deletion optimizer configuration.

  2. On the lower section of the Tables details page, choose Table optimization , and then choose Edit.

  3. On the Edit optimization page, make the desired changes.

  4. Choose Save.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.