From 6d0e37c62b9bd4eaa1d09dd7179878a61855244e Mon Sep 17 00:00:00 2001 From: lambdalisue Date: Fri, 6 Nov 2020 08:22:33 +0900 Subject: [PATCH] Add m.Guardian.Enrollment.Delete --- management/guardian.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/management/guardian.go b/management/guardian.go index 0342a7d7..d495d20e 100644 --- a/management/guardian.go +++ b/management/guardian.go @@ -99,6 +99,14 @@ func (m *EnrollmentManager) Get(id string, opts ...RequestOption) (en *Enrollmen return } +// Delete an enrollment to allow the user to enroll with multi-factor authentication again. +// +// See: https://auth0.com/docs/api/management/v2#!/Guardian/delete_enrollments_by_id +func (m *EnrollmentManager) Delete(id string, opts ...RequestOption) (err error) { + err = m.Request("DELETE", m.URI("guardian", "enrollments", id), nil, opts...) + return +} + type MultiFactorManager struct { *Management