diff --git a/ui/core/app/routes/scopes/scope/auth-methods.js b/ui/core/app/routes/scopes/scope/auth-methods.js
index 0e35b2c28..7527ac784 100644
--- a/ui/core/app/routes/scopes/scope/auth-methods.js
+++ b/ui/core/app/routes/scopes/scope/auth-methods.js
@@ -58,4 +58,21 @@ export default class ScopesScopeAuthMethodsRoute extends Route {
this.notify.error(error.message, { closeAfter: null });
}
}
+
+ /**
+ * Delete an auth method in current scope and redirect to index
+ * @param {AuthMethodModel} authMethod
+ */
+ @action
+ async delete(authMethod) {
+ try {
+ await authMethod.destroyRecord();
+ this.refresh();
+ this.notify.success(this.intl.t('notify.delete-success'));
+ this.transitionTo('scopes.scope.auth-methods');
+ } catch (error) {
+ //TODO: replace with translated strings
+ this.notify.error(error.message, { closeAfter: null });
+ }
+ }
}
diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/index.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/index.hbs
index c08c3fd4a..753e4fdf2 100644
--- a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/index.hbs
+++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/index.hbs
@@ -18,6 +18,18 @@
+
+
+
+ {{t 'actions.delete-auth-method'}}
+
+
+
+