Skip to main content
Nov 5, 2026 8:54 AM UTC
Question

Deleting Repository folders/documents through API

Goodmorning, I am using the API to generate customer Azure diagrams based on the Cloud integration. After creation i move it to a repository.

The way repositories work and the API it's not possible to update the diagrams through API. At least I didn't get it working.

So my idea is to delete either the folder or the document (trash document API endpoint) but that does not seem to work through API in a repository.

This might be expected behaviour. I get a access forbidden error. However deleting it throught the GUI with the same account is no problem.

Comments

Humas1985
Lucid Legend Level 10
Lucid Legend Level 10
Nov 9, 2026 12:31 PM UTC

Hi ​@Olin 

The 403 error could be related to API authorization or how the operation applies to repository documents; it doesn’t, by itself, confirm that repository deletion is unsupported. Lucid’s Trash Document endpoint requires document ownership or appropriate team-folder permissions, and lists insufficient app access as one reason for a 403.

I’d verify the API token’s permissions and document ID first. Since the same account can delete the document through the UI, 

To learn more on the limitation - https://lucid.readme.io/reference/updatedocument?

https://help.lucid.co/hc/en-us/articles/38403744863124-Use-repositories-to-centralize-and-standardize-your-organization-s-documentation?

https://lucid.readme.io/reference/trashdocument?

Hope this helps !!

Translate
Huma || Lucid Legend