Skip to content

collectgarbage

collectgarbage(opt, arg)

Performs a garbage-collection operation. The first argument specifies the operation to perform

Modifying garbage collector settings is generally not recommended unless you know what you’re doing.