func (s *APIServer) deleteToken(w http.ResponseWriter, r *http.Request, p httprouter.Params) (interface{}, error) {
	token := p.ByName("token")
	if err := s.a.DeleteToken(token); err != nil {
		return nil, trace.Wrap(err)
	}
	return message(fmt.Sprintf("Token %v deleted", token)), nil
}
// deleteToken deletes (revokes) a token by its value
deleteToken deletes (revokes) a token by its value
// deleteToken deletes ( revokes ) a token by its value
func (s *APIServer) deleteToken(w http.ResponseWriter, r *http.Request, p httprouter.Params) (interface{}, error) {
	token := p.ByName("token")
	if err := s.a.DeleteToken(token); err != nil {
		return nil, trace.Wrap(err)
	}
	return message(fmt.Sprintf("Token %v deleted", token)), nil
}
func ( s * APIServer ) deleteToken ( w http . ResponseWriter , r * http . Request , p httprouter . Params ) ( interface { } , error ) { token := p . ByName ( " " ) if err := s . a . DeleteToken ( token ) ; err != nil { return nil , trace . Wrap ( err ) } return message ( fmt . Sprintf ( " " , token ) ) , nil }
deleteToken deletes (revokes) a token by its value
deleteToken deletes ( revokes ) a token by its value