Collaboration data (document content) is retained only while users are connected. After the last user disconnects, it is deleted after 24 hours. To preserve content between sessions, save it yourself or use the document storage feature. To explore different ways of saving a document's data and choose the best option for your use case, please see the introduction to initializing and saving documents.
Comments, suggestions, revisions, and user data are stored permanently but can be soft-deleted. The REST API for comments and suggestions also provides two types of removal — soft (the default one) and permanent (requires an explicit flag). To remove all data of a single document, the preferred approach is to use the Documents REST API. Please see Remove document for further details.
If you delete an environment, all related data will be removed. For more information, refer to the temporary and permanent data section in the CKEditor 5 Collaboration Features documentation.