Skip to content

Commit

Permalink
use force option for clean
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jan 27, 2023
1 parent 31445d8 commit 0604b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/ftr_apis/server/routes/kbn_client_so/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const registerCleanRoute = (router: IRouter) => {

for await (const response of finder.find()) {
const objects = response.saved_objects.map(({ type, id }) => ({ type, id }));
const { statuses } = await soClient.bulkDelete(objects);
const { statuses } = await soClient.bulkDelete(objects, { force: true });
deleted += statuses.filter((status) => status.success).length;
}

Expand Down

0 comments on commit 0604b76

Please sign in to comment.