catalog-backend: switch default orphanStrategy to 'delete'

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-07-15 15:45:08 +02:00
parent d675d96cc1
commit 687bfc826e
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': major
---
**BREAKING**: The default `catalog.orphanStrategy` has been switched to `'delete'`.
+1 -1
View File
@@ -160,7 +160,7 @@ export interface Config {
/**
* The strategy to use for entities that are orphaned, i.e. no longer have
* any other entities or providers referencing them. The default value is
* "keep".
* "delete".
*/
orphanStrategy?: 'keep' | 'delete';
@@ -344,7 +344,7 @@ export class DefaultCatalogProcessingEngine {
private startOrphanCleanup(): () => void {
const orphanStrategy =
this.config.getOptionalString('catalog.orphanStrategy') ?? 'keep';
this.config.getOptionalString('catalog.orphanStrategy') ?? 'delete';
if (orphanStrategy !== 'delete') {
return () => {};
}