Thanks, I’ll raise a bug for this. In the meantime, to remove any code you should be able to overwrite your code with blank space or remove all files. Or re-use that app for a new one.
I didn’t experience this myself, of course, since I have a million zillion Glitch projects and would never delete them all. But a new user I recruited ran into this yesterday and was a little frustrated/confused and it might’ve been a bad first impression, like Glitch being all glitchy, so it could be considered a vote to ++ the priority of the fix.
Here’s what the person said:
have you guys noticed the infuriating thing glitch does when you try to delete a project and don’t have any in your account? it keeps recreating a new one of the last project you visited, unless you close the window before it loads the url hah… so i may have just forked the project half a dozen times, though based on how glitch works that seems to be of little/no consequence
I am not sure I get what the person is meaning! This is the expected behavior: if you delete your last project, we create a new “welcome” project. Is this what they’re seeing? If it is, what would be the behavior they would expect instead?
thanks for reaching out! We really appreciate it I’ve made a few attempts at replicating what you’ve seen, but with no success. I’ll tell you what I am seeing instead so that perhaps you can give me some additional hints.
Request to join as an anonymous user: I did this, but didn’t cause anything except showing the “Waiting to Join” popup.
Create an account via GitHub: I created a new account to test this out.
Create a Remix of the project: I have a question here: after the login, did you need to go manually to the project you wanted to remix, or were you redirected to that project right after login? I had to go to the project manually (the one I linked as an example at 1.).
Try to delete the project: I tried to delete the project, and it succeeded.
Get redirected to a new Remix of the original project I first visited: I didn’t get redirected to a new Remix, I got redirected to the original project itself, which I eventually had to remix manually.
I am pretty sure there is some piece of interaction I am missing here If you have time, let me know where I am doing something different than what you do… I can also try to upload a gif or something similar if needed! We’d love to provide the best possible user experience for everyone
So I figured it out. You’re right that it was probably just creating new welcome projects over and over (which, without some kind of messaging/clarification/notification, still feels abrasive to me), but I feel slightly vindicated by discovering that this behavior is inconsistent.
As a guest user:
I remix a project and then delete it. I am returned to that project’s readme
As a logged-in user the behavior is different depending on whether I’ve visited another project in the current session:
I visit a project and remix it. The new project and original are visible in the project selection list. I delete the project. I’m returned to the original’s readme
I visit a project and remix it. Then I refresh my browser. do { I delete the project. I'm returned to a readme, but it's a demo project } while (1);
You can imagine that on that last step I wasn’t paying too much attention to the text of the readme (because I’d already seen the first two versions of the behavior pattern from the app), otherwise I probably would have noticed the fact that it wasn’t the original project’s.
Sidenote, I was able to break things pretty well just by taking different paths around the app: