# CloudFlare module not delete record

**URL:** <https://forum.ansible.com/t/cloudflare-module-not-delete-record/36682>\
**Category:** Ansible Project\
**Created:** [June 2, 2022, 1:37pm UTC](https://forum.ansible.com/t/cloudflare-module-not-delete-record/36682 "2022-06-02T13:37:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emanuel\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Post date:** [June 2, 2022, 1:37pm UTC](https://forum.ansible.com/t/cloudflare-module-not-delete-record/36682/1 "2022-06-02T13:37:23Z")

</div>

Using the ansible module “cloudflare\_dns” I am not able to delete a record.  
Here is the playbook:

tasks:

- name: Borrando registro en \< CLOUDFLARE \>  
cloudflare\_dns:  
zone: domain  
type: A  
value: kibe-stage-l5  
state: absent  
account\_email: [john@john.com](mailto:john@john.com)  
account\_api\_key: xxxxxxxxxxxxxxxxxxxxxx

When I enter the cloudflare control panel the log is still created.  
I tried in the parameter “value” with kibe-stage-l5.domain but the record is not deleted.

Here the ansible verbose:

ok: [kibe-stage] =\> {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“account\_api\_key”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“account\_email”: “[egonzalez@domain.com](mailto:egonzalez@domain.com)”,  
“algorithm”: null,  
“api\_token”: null,  
“cert\_usage”: null,  
“hash\_type”: null,  
“key\_tag”: null,  
“port”: null,  
“priority”: 1,  
“proto”: null,  
“proxied”: false,  
“record”: “@”,  
“selector”: null,  
“service”: null,  
“solo”: null,  
“state”: “absent”,  
“timeout”: 30,  
“ttl”: 1,  
“type”: “A”,  
“value”: “kibe-stage-l5”,  
“weight”: 1,  
“zone”: “[domain.com](http://domain.com)”  
}  
}  
}  
any ideas?

---

<div class="post-metadata">

**Author:** ![Emanuel\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Post date:** [June 2, 2022, 1:42pm UTC](https://forum.ansible.com/t/cloudflare-module-not-delete-record/36682/2 "2022-06-02T13:42:55Z")

</div>

Solved, error reading the documentation, sorry ☹
