Summary
Add admin-facing cleanup controls for Data Management backups, including manual backup deletion and an automatic retention policy that can delete backups after a configurable age expressed in days, weeks, months, or years.
User Value
Admins need a safe way to reduce backup storage growth and remove obsolete backups without editing Cosmos records or storage artifacts manually.
Proposed Behavior
- Admins can delete selected backups from Backup Inventory after confirmation.
- Data Management settings include a retention policy using a value and unit: days, weeks, months, or years.
- Retention cleanup removes expired backup metadata and associated stored backup artifacts consistently.
- Cleanup actions are logged as admin activity and return clear success/error feedback.
Acceptance Criteria
Notes
- Existing backup settings already include
retention_days; this work should preserve compatibility while adding the requested unit-based policy.
- Relevant areas likely include
functions_data_management.py, route_backend_data_management.py, admin_settings.html, admin_data_management.js, route tests, functional tests, and UI tests.
Summary
Add admin-facing cleanup controls for Data Management backups, including manual backup deletion and an automatic retention policy that can delete backups after a configurable age expressed in days, weeks, months, or years.
User Value
Admins need a safe way to reduce backup storage growth and remove obsolete backups without editing Cosmos records or storage artifacts manually.
Proposed Behavior
Acceptance Criteria
Notes
retention_days; this work should preserve compatibility while adding the requested unit-based policy.functions_data_management.py,route_backend_data_management.py,admin_settings.html,admin_data_management.js, route tests, functional tests, and UI tests.