diff --git a/x-pack/test/api_integration/apis/management/index_management/data_streams.ts b/x-pack/test/api_integration/apis/management/index_management/data_streams.ts index 3f03ce6d77948..07529100e69c7 100644 --- a/x-pack/test/api_integration/apis/management/index_management/data_streams.ts +++ b/x-pack/test/api_integration/apis/management/index_management/data_streams.ts @@ -119,6 +119,8 @@ export default function ({ getService }: FtrProviderContext) { }); after(async () => { + // The Delete API only deletes the data streams, so we still need to manually delete their + // related index patterns to clean up. await Promise.all([ deleteComposableIndexTemplate(testDataStreamName1), deleteComposableIndexTemplate(testDataStreamName2),