We are facing issues as open files are maxing out. is there any way to close document after saving it
Thanks for your inquiry. Objects will be cleaned up when they are no longer being used and when the garbage collector sees fit. Sometimes, you may need to set an object to null in order to make it go out of scope but overall there is usually no need to set to null.
When the document is closed, all the DOM data is purged from memory during the next garbage collector cycle.
Could you please share some more detail about your use case? We will then provide you more information about your query.