My Oracle Support Banner

How to Delete Multiple Files in Object Storage by Pattern (Doc ID 2999420.1)

Last updated on JANUARY 26, 2024

Applies to:

Oracle Retail Demand Forecasting Cloud Service - Version 23.2 and later
Oracle Retail Inventory Planning Optimization Cloud Service Advanced Edition - Version 23.2 and later
Oracle Retail AI Foundation Cloud Service - Version 23.2 and later
Oracle Retail Merchandise Financial Planning Enterprise Edition Cloud Service - Version 23.2 and later
Oracle Retail Assortment & Item Planning Enterprise Edition Cloud Service - Version 23.2 and later
Information in this document applies to any platform.

Goal

We have created our object storage file transfer scripts based on sample script in the documentation. In the "deletefiles" option of the script, individual file names have to be specified to clean/maintain the folders. Certain folders such as logs would amass high number of files and would need to be cleaned. Since deletefiles option requires individual filenames to be specified, is there a script available to clean these folders using a pattern rather than specifying individual file names which would take support personnel some time to clean?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.