When you move a document to the trash with the Lucidchart command “Move to trash”, you find it in the trash folder.
If you empty the trash folder, the document is not visible anymore but in fact it is still there because if you use the end point “https://api.lucid.co/documents/search” the deleted documents are retrieved.
How could we really delete documents?
For now I’m filtering the result of the deserialized json response with one line of code
const documents = deserializedDocuments.filter(f => f.trashed == null);
Best regards.