Delete remote git repository through command line.

63 views
Skip to first unread message

sandhya r

unread,
Jun 1, 2021, 8:42:15 AM6/1/21
to git-for-windows
Hi Team,

I want to know whether we can delete remote git repository through command line.
rm -rf .git  >  this will delete repo on local not on remote.
Apart from delete repository through git ui (repo > settings > danger zone > delete repo) 
is there other ways to delete git repo on remote ?


Thanks,
Sandhya

Bryan Turner

unread,
Jun 1, 2021, 12:26:31 PM6/1/21
to sandhya r, git-for-windows
No, there is nothing in Git’s wire protocol that allows deleting a remote repository. If whatever hosting system you’re using has something of their own for it then it may be possible, but not using Git. (Many hosting services offer a REST API that can delete repositories but nothing over SSH, for example.)


Thanks,
Sandhya

--
You received this message because you are subscribed to the Google Groups "git-for-windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/b121baf2-b803-46f8-a288-86d1e76bd626n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages