codesandbox-client
codesandbox-client copied to clipboard
Can't delete a Template sandbox in Recent page
🐛 bug report
Preflight Checklist
- [x] I have read the Contributing Guidelines for this project.
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Description of the problem
Cannot delete template sandbox that is listed in the recent page
How has this issue affected you? What are you trying to accomplish?
Can't delete sandboxes marked as template that I want to remove in recent page
To Reproduce
- Create a sanbox and mark as template.
- Navigate to recent page of codesandbox.
- Try to delete the template sandbox using delete option in right click menu.
- It won't be deleted and gives error in devtools.
Link to sandbox: link (optional)
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | |
| Browser | Version 127.0.6533.73 |
| Operating System | Windows 11 Home 23H2 |
It seems the
template id required to delete the sandbox is not present.
I think its because, the sandboxes variable sandboxes.RECENT_SANDBOXES does not contain template data.
Hi @PraneshBalasubramaniam. Thanks for sharing this! As we state in our Docs:
From the "Template Info" panel inside the editor you can uncheck 'Template'. Doing this will convert the template back to a regular Devbox and remove it from the "Create" modal.
However, we should improve the UX of the flow you described so users are aware that they first need to uncheck the sandbox as a template. I'll share this with the team.