Process history

When a process is finished, I can only find its information in the history in the act_hi_varinst table. Know if these records are automatically deleted

By default the history will stay there for ever.
You should configure history cleanup and and the engine will remove history data after a certain amount of time.