# Ansible Playbook

**URL:** <https://forum.ansible.com/t/ansible-playbook/29752>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [February 23, 2019, 2:29pm UTC](https://forum.ansible.com/t/ansible-playbook/29752 "2019-02-23T14:29:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BHARATHI\_DURAI\_RAJ](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@BHARATHI\_DURAI\_RAJ](https://forum.ansible.com/u/BHARATHI_DURAI_RAJ)\
**Post date:** [February 23, 2019, 2:29pm UTC](https://forum.ansible.com/t/ansible-playbook/29752/1 "2019-02-23T14:29:29Z")

</div>

Can you please help me on correcting the below playbook…

- name: Delete Project

uri:

url: “[https://dev.azure.com/{{](https://dev.azure.com/%7B%7B) org }}/\_apis/projects?api-version=4.1”

method: DELETE

user: “{{ vsts\_user }}”

password: “{{ pattoken }}”

return\_content: yes

force\_basic\_auth: yes

validate\_certs: yes

body\_format: json

headers:

Accept: “application/json”

body: “{{ lookup(‘template’,‘./templates/{{ Testing\_bharathidurairaj }}’) }}”

status\_code: 202

when: list\_project.status != 200

register: vsts\_project

delegate\_to: localhost

run\_once: true

I am trying to delete a azure devops project using the above playbook…
