As Xray's indexed resources are retained in the system, this can result in large amounts of data being stored, which impacts your storage and causes performance issues. Starting from Xray version 3.41.4, you can set retention periods for repositories and builds. The retention period defines how long Xray will retain artifacts scan data, and after the set retention period, this data is deleted, thus improving performance and freeing up storage space.
The default period is 90 days. You can change the default period using the server.repo.defaultRetentionDaysForIndexedRepo
in the Xray System YAML.
The following options are available for setting an Xray indexed resource retention period: