Not able to delete the Document in Secure Cloud
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
When I duplicated a Document, due to it was a little bit slow, I click twice the "Duplicate" button.

And then two same duplicated Documents were created.
Now I want to delete the duplicated Documents, I was not able to. It should let me delete any Document I want.
### Actual Behavior
After clicking the Delete button, app gave me this error and the Document cannot be deleted.

### Reproduction Steps
1. Create a complex Document.
2. In the Document right top corner, click three dots menu.
3. Clicking Duplicate several times.
4. I guess some duplicated Document with same key created in cloud backend.
5. Not able to delete the duplicated Documents, and see the picture as below.

### Is there an existing issue for this?
- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Additional Information
_No response_
### Insomnia Version
8.5.1
### What operating system are you using?
Windows
### Operating System Version
Windows 10
### Installation method
Download from Official Website
### Last Known Working Insomnia version
_No response_
Contributor guide
Research direction
No files, tests, or code entry points are named. Start by reproducing the duplicate-Document flow on Windows with Insomnia 8.5.1, then trace the cloud-side deletion path for duplicated Documents; done means each duplicated Document can be deleted without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100