hydra janitor
#
hydra janitorClean the database of old tokens and login/consent requests
#
SynopsisThis command will cleanup any expired oauth2 tokens as well as login/consent requests.
#
WarningThis command is in beta. Proceed with caution!
This is a destructive command and will purge data directly from the database. Please use this command with caution if you need to keep historic data for any reason.
###############
Janitor can be used in several ways.
By passing the database connection string (DSN) as an argument Pass the database url (dsn) as an argument to janitor. E.g. janitor <database-url>
By passing the DSN as an environment variable
By passing a configuration file containing the DSN janitor -c /path/to/conf.yml
Extra optional parameters can also be added such as
Running only a certain cleanup
or
or both
#
Options#
SEE ALSO- hydra - Run and manage ORY Hydra