Skip to content

Commit

Permalink
backport just this method from elastic#127508 (elastic#127656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Drengenberg authored Mar 14, 2022
1 parent 515e351 commit 59b292f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/kbn-test/src/kbn_client/kbn_client_saved_objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,25 @@ export class KbnClientSavedObjects {
this.log.success('deleted', deleted, 'objects');
}

public async cleanStandardList(options?: { space?: string }) {
// add types here
const types = [
'search',
'index-pattern',
'visualization',
'dashboard',
'lens',
'map',
'graph-workspace',
'query',
'tag',
'url',
'canvas-workpad',
];
const newOptions = { types, space: options?.space };
await this.clean(newOptions);
}

public async bulkDelete(options: DeleteObjectsOptions) {
let deleted = 0;
let missing = 0;
Expand Down

0 comments on commit 59b292f

Please sign in to comment.