Files_versions folder is too big

Hello all.
I installed Nexcloud and it works. I have about 2.3GB of files there and … 16GB in the “files_versions” folder because I have many 55MB copies of the database there. How can I limit the number of copies stored in this folder - e.g. only 3 copies or only 3 days?

Krystian