import json
import sys
import requests


def deleteRepository():
#  get_URL = 'https://dev.azure.com/'+Organization_Name+'/'+Project_Name+'/_apis/git/repositories/'+Repository_Name+'?api-version=5.1'
  get_URL = 'https://dev.azure.com/guptashreya21/deleteRepo/_apis/distributedtask/variablegroups?groupName=CHeckCreationOfVariableGroupPart2___API&api-version=5.0-preview.1'
  get_ID_request = requests.get(url = get_URL , auth = ('guptashreya21','o6vnjl3lehhcv6brzatndur7u2jhcu6o5mbmsm2ia3put46vdy3q'))
  data = get_ID_request.json()
  print(data)

try:

  deleteRepository()
except KeyError:
  print("URL Incorrect. Check values for Repository/Organization/Project Name")
except ValueError:
  print("Incorrect Credentials")
except Exception as error:
  print(error)

512db1c2e0b789f8abcd30f832843abe70fdb2f9
<mask token>

<mask token>


def deleteRepository():
    get_URL = (
        'https://dev.azure.com/guptashreya21/deleteRepo/_apis/distributedtask/variablegroups?groupName=CHeckCreationOfVariableGroupPart2___API&api-version=5.0-preview.1'
        )
    get_ID_request = requests.get(url=get_URL, auth=('guptashreya21',
        'o6vnjl3lehhcv6brzatndur7u2jhcu6o5mbmsm2ia3put46vdy3q'))
    data = get_ID_request.json()
    print(data)


<mask token>

<mask token>


def deleteRepository():
    get_URL = (
        'https://dev.azure.com/guptashreya21/deleteRepo/_apis/distributedtask/variablegroups?groupName=CHeckCreationOfVariableGroupPart2___API&api-version=5.0-preview.1'
        )
    get_ID_request = requests.get(url=get_URL, auth=('guptashreya21',
        'o6vnjl3lehhcv6brzatndur7u2jhcu6o5mbmsm2ia3put46vdy3q'))
    data = get_ID_request.json()
    print(data)


try:
    deleteRepository()
except KeyError:
    print(
        'URL Incorrect. Check values for Repository/Organization/Project Name')
except ValueError:
    print('Incorrect Credentials')
except Exception as error:
    print(error)

import json
import sys
import requests


def deleteRepository():
    get_URL = (
        'https://dev.azure.com/guptashreya21/deleteRepo/_apis/distributedtask/variablegroups?groupName=CHeckCreationOfVariableGroupPart2___API&api-version=5.0-preview.1'
        )
    get_ID_request = requests.get(url=get_URL, auth=('guptashreya21',
        'o6vnjl3lehhcv6brzatndur7u2jhcu6o5mbmsm2ia3put46vdy3q'))
    data = get_ID_request.json()
    print(data)


try:
    deleteRepository()
except KeyError:
    print(
        'URL Incorrect. Check values for Repository/Organization/Project Name')
except ValueError:
    print('Incorrect Credentials')
except Exception as error:
    print(error)

import json
import sys
import requests


def deleteRepository():
#  get_URL = 'https://dev.azure.com/'+Organization_Name+'/'+Project_Name+'/_apis/git/repositories/'+Repository_Name+'?api-version=5.1'
  get_URL = 'https://dev.azure.com/guptashreya21/deleteRepo/_apis/distributedtask/variablegroups?groupName=CHeckCreationOfVariableGroupPart2___API&api-version=5.0-preview.1'
  get_ID_request = requests.get(url = get_URL , auth = ('guptashreya21','o6vnjl3lehhcv6brzatndur7u2jhcu6o5mbmsm2ia3put46vdy3q'))
  data = get_ID_request.json()
  print(data)

try:

  deleteRepository()
except KeyError:
  print("URL Incorrect. Check values for Repository/Organization/Project Name")
except ValueError:
  print("Incorrect Credentials")
except Exception as error:
  print(error)
