Archive old data and clean up unused records to optimize system performance
Data Archival and Cleanup
advanced medium risk Data Management
Description
Prerequisites
- Data retention policy defined
- Backup strategy in place
- Archival storage configured
Parameters
dataType
String*Type of data to archive (orders, products, users)
retentionDays
Number*Number of days to retain data
Default: 365
archiveBeforeDelete
BooleanArchive data before deletion
Default: true
batchSize
NumberNumber of records to process per batch
Default: 1000
dryRun
BooleanPreview operations without executing
Script Code
data-archival-cleanup.groovyScript Information
Author:SAP Commerce Expert
Execution Time:60-180 minutes
Rating:4.6/5
Downloads:340
Last Updated:2023-12-28
Version:1.9.0
Tags
tools.groovyScriptLibrary.ui.title
tools.groovyScriptLibrary.ui.subtitle