Skip to main content

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.

Hi Michel, I am taking a look at this and will update you when we have a solution.


Hello Michel, I've pushed a change that should now prevent documents deleted from trash from appearing in search results when using the Search Documents endpoint.

Please let me know if you run into any more issues or have additional questions!