Andrei Gheorghe
Andrei Gheorghe

Reputation: 173

How to delete Windows Azure Git repository?

I have a Azure Web Site that is linked with a Git Repository (in the deployments tab). How can I remove the repository and the link ? (I want to set up TFS deployment)

Upvotes: 9

Views: 6428

Answers (4)

chinna2580
chinna2580

Reputation: 2125

yes we can remove azure repositories from our local git using

git remote -v
git remote rm azure

thats it, it will remove azure git repo from the local git.

Upvotes: 0

Mr Z
Mr Z

Reputation: 21

I just found an elegant solution ... and was able to delete several GB of data

1) login to new Azure portal

2) open the required App Service dashboard

3) in the left column there's a Console (in the DEVELOPMENT TOOLS)

4) back screen with command prompt opened

5) type:

rm -rf .git

Upvotes: 1

David Ebbo
David Ebbo

Reputation: 43203

Updated answer (4/9/2013)

The Azure portal now directly supports doing this:

  • Go to the Dashboard for the site on the Azure portal
  • Under Quick Glance, click 'delete git repository'. Or if you were connected to GitHub (or Bitbucket, Codeplex, ...), click the 'Disconnect from Github' button.

Original answer

There is actually a way you can do this now, though it's a little manual. See the Setting up continuous deployment from the portal after a deployment has happened section in this page.

Basically, run this from the command line, using the same username/password that you use for git deployment:

curl --user yourusername -X DELETE https://yoursitename.scm.azurewebsites.net/live/scm

In the future, we will make this a simple action from the Azure portal.

Upvotes: 10

Arun Rana
Arun Rana

Reputation: 8606

I think there is no way to delete Git Repository link and set TFS again. for this you need to delete this website and recreate it, after that you can set up TFS deployment.

Upvotes: 10

Related Questions