import { deleteList } from '@kbn/securitysolution-list-api' ; import { useAsync , withOptionalSignal } from '@kbn/securitysolution-hook-utils' ; const deleteListWithOptionalSignal = withOptionalSignal ( deleteList ) ; export const useDeleteList = ( ) => useAsync ( deleteListWithOptionalSignal ) ;