func (s *IdentityService) DeleteUser(user string) error {
	err := s.backend.DeleteBucket([]string{"web", "users"}, user)
	if err != nil {
		if trace.IsNotFound(err) {
			return trace.NotFound(fmt.Sprintf("user '%v' is not found", user))
		}
	}
	return trace.Wrap(err)
}
// DeleteUser deletes a user with all the keys from the backend
DeleteUser deletes a user with all the keys from the backend
// DeleteUser deletes a user with all the keys from the backend
func (s *IdentityService) DeleteUser(user string) error {
	err := s.backend.DeleteBucket([]string{"web", "users"}, user)
	if err != nil {
		if trace.IsNotFound(err) {
			return trace.NotFound(fmt.Sprintf("user '%v' is not found", user))
		}
	}
	return trace.Wrap(err)
}
func ( s * IdentityService ) DeleteUser ( user string ) error { err := s . backend . DeleteBucket ( [ ] string { " " , " " } , user ) if err != nil { if trace . IsNotFound ( err ) { return trace . NotFound ( fmt . Sprintf ( " " , user ) ) } } return trace . Wrap ( err ) }
DeleteUser deletes a user with all the keys from the backend
DeleteUser deletes a user with all the keys from the backend