diff --git a/src/core_plugins/kibana/public/management/sections/indices/_edit.js b/src/core_plugins/kibana/public/management/sections/indices/_edit.js index 81cb8aaa52233..7c38ae787fd8e 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/_edit.js +++ b/src/core_plugins/kibana/public/management/sections/indices/_edit.js @@ -81,8 +81,7 @@ uiModules.get('apps/management') } } - ingest.delete($scope.indexPattern.id) - .then($scope.indexPattern.destroy.bind($scope.indexPattern)) + courier.indexPatterns.delete($scope.indexPattern) .then(refreshKibanaIndex) .then(function () { $location.url('/management/data/index');