You can automate the ledger cleanup when you logout by enabling this feature in the module options section in system options.
 
To view the general ledger clean up go to Setup -> Admin ->Ledger clean up 
 
Click here to see our detailed Online Help guide