<@U011D3UQKNY> do you have any idea to this to del...
# ory-selfhosting
g
@magnificent-energy-493 do you have any idea to this to delete a specific OIDC provider from Ory Kratos Identity credentials with the Admin API like the update or patch identity ?
g
I already tested this endpoint but when I give it the JSON path to the credentials oidc identifiers, Kratos returns error message that indicates like no data found. I have also checked in the source code and I seen that the identity object used in the patch function is restricted with no credentials :
Copy code
identity/identity.go

type WithAdminMetadataInJSON Identity

func (i WithAdminMetadataInJSON) MarshalJSON() ([]byte, error) {
	type localIdentity Identity
	i.Credentials = nil
	return json.Marshal(localIdentity(i))
}