# Unable to remove notification\_templates\_\* by using awx.awx.job\_template

**URL:** <https://forum.ansible.com/t/unable-to-remove-notification-templates-by-using-awx-awx-job-template/4187>\
**Category:** Get Help\
**Tags:** infra-config-as-code, awx, collections\
**Created:** [March 3, 2024, 4:01am UTC](https://forum.ansible.com/t/unable-to-remove-notification-templates-by-using-awx-awx-job-template/4187 "2024-03-03T04:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crimrose](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/crimrose/32/2239_2.png) [@Crimrose](https://forum.ansible.com/u/Crimrose)\
**Post date:** [March 3, 2024, 4:01am UTC](https://forum.ansible.com/t/unable-to-remove-notification-templates-by-using-awx-awx-job-template/4187/1 "2024-03-03T04:01:58Z")

</div>

I’m using [awx.awx.job\_template](https://docs.ansible.com/ansible/latest/collections/awx/awx/job_template_module.html#parameter-notification_templates_error) to create notifications for job tempate. But I can’t remove these notification rules after adding with code. I already tried removing `notification_templates_error` or set this value as empty `''` but notification still there.  
Actually I can work around by using UI, but I want to know how I can manage it without interacting with UI.

I remember `survey` also have the same problem.

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [March 3, 2024, 4:50am UTC](https://forum.ansible.com/t/unable-to-remove-notification-templates-by-using-awx-awx-job-template/4187/2 "2024-03-03T04:50:16Z")

</div>

Hi. similar issue has been reported and I think your issue should also be reported as a kind of bug: [Empty value in execution\_environment should remove selections (ansible.controller.job\_template) · Issue #14841 · ansible/awx · GitHub](https://github.com/ansible/awx/issues/14841)

I don’t know how feasible this is for you, but it is technically possible to remove it by using the `ansible.builtin.uri` module to directly manipulate the REST API instead: [11. AWX API Reference Guide — Ansible AWX community documentation](https://ansible.readthedocs.io/projects/awx/en/latest/rest_api/api_ref.html#/Job_Templates/Job_Templates_job_templates_notification_templates_error_create)

---

<div class="post-metadata">

**Author:** ![Crimrose](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/crimrose/32/2239_2.png) [@Crimrose](https://forum.ansible.com/u/Crimrose)\
**Post date:** [March 3, 2024, 5:36am UTC](https://forum.ansible.com/t/unable-to-remove-notification-templates-by-using-awx-awx-job-template/4187/3 "2024-03-03T05:36:58Z")

</div>

> [@kurokobo](#):
>
> s for you, but it is technically possible to remove it by using the `ansible.builtin.uri` module to

Thanks for your suggestion. 😅  
😭 Actually I may do it via API, but for the long terms it not really nice. I have AWX in many environments, some of them I can’t get access to.Delete notification via API seems not really good solution in my case and it quite hard to control when I remove/add new job templates.

Again, _Thank you_ very much.
