import { NamespaceType } from '@kbn/securitysolution-io-ts-list-types' ; import { SavedObjectsClientContract } from 'kibana/server' ; import { deleteExceptionListItemByList } from '../../delete_exception_list_items_by_list' ; param listsOfItemsToDelete { array } param savedObjectsClient { object } returns { array } export const deleteListItemsToBeOverwritten = async ( { listsOfItemsToDelete , savedObjectsClient , } ) : Promise < void > => { for await ( const list of listsOfItemsToDelete ) { await deleteExceptionListItemByList ( { listId : list [ 0 ] , namespaceType : list [ 1 ] , savedObjectsClient , } ) ; } } ;