def remove_key(pki_dir, id_):
 key = os.path.join(pki_dir, 'minions', id_)
 if os.path.isfile(key):
  os.remove(key)
  log.debug("Deleted '{0}'".format(key))

def remove_key ( pki_dir , id_ ) : key = os . path . join ( pki_dir , 'minions' , id_ ) if os . path . isfile ( key ) : os . remove ( key ) log . debug ( "Deleted '{0}'" . format ( key ) )
this method removes a specified key from the accepted keys dir .