Skip to content

Instantly share code, notes, and snippets.

@TheAshwanik
Last active April 28, 2024 16:57
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheAshwanik/9a97bc0efdbacaef41de78c0deff2471 to your computer and use it in GitHub Desktop.
Save TheAshwanik/9a97bc0efdbacaef41de78c0deff2471 to your computer and use it in GitHub Desktop.
Delete Project on Glitch
While you cannot delete the project itself yet, but you can delete the source code in your project by overwriting the glitch git repository with an empty new commit. This is very important if you just planned to play around but ended up writing important code onto glitch and have a fear of glitch.com getting hacked and your code getting compromised and published on the internet, or if you accidentally commited a private key to glitch and wanted to completely remove it.
on glitch website project edit page open Tools/Extras/Git,Import&Export/Write
Copy_link => is e.g. https://api.glitch.com/git/YOUR-PROJECT-NAME
Copy_user_name => is YOUR-RANDOMLY-GENERATED-GIT-USERNAME e.g. 1aaa1111-1111-aaa1-aa1111111111
on glitch website project edit page open Console(terminal)
git config receive.denyCurrentBranch updateInstead
on your local computer terminal
mkdir foobar
cd foobar
git init
git commit --allow-empty --allow-empty-message -m ''
git remote add origin https://YOUR-RANDOMLY-GENERATED-GIT-USERNAME@api.glitch.com/git/YOUR-PROJECT-NAME
git push -u --force origin master
cd ..
rm -fr foobar
on glitch website project edit page open Console(terminal)
refresh
@Firannos
Copy link

Firannos commented May 9, 2021

p

@erickythierry
Copy link

great tip. I did it here and it worked fine, even in the glitch history everything disappeared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment