Skip to main content
Michel L
October 1, 2025
Solved

Trashed document still appears using Search Document EndPoint

  • October 1, 2025
  • 2 replies
  • 82 views

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.

Best answer by vscala

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!

Comments

Lucid product team
October 1, 2025

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

vscalaAnswer
Lucid product team
October 3, 2025

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!