# Chef provisioning

**URL:** <https://discourse.chef.io/t/chef-provisioning/10613>\
**Category:** Chef Infra (archive)\
**Created:** [March 21, 2017, 11:23am UTC](https://discourse.chef.io/t/chef-provisioning/10613 "2017-03-21T11:23:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![telee](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@telee](https://discourse.chef.io/u/telee)\
**Post date:** [March 21, 2017, 11:23am UTC](https://discourse.chef.io/t/chef-provisioning/10613/1 "2017-03-21T11:23:52Z")

</div>

Is there a way to run a recipe before destroying a vm? I would like to delete the vm from my monitoring dashboard during or just before destroying it?

---

<div class="post-metadata">

**Author:** ![dreamnite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/dreamnite/32/1320_2.png) [@dreamnite](https://discourse.chef.io/u/dreamnite)\
**Post date:** [March 21, 2017, 12:40pm UTC](https://discourse.chef.io/t/chef-provisioning/10613/2 "2017-03-21T12:40:20Z")

</div>

Try running a machine block with a converge action and the recipe you want as the run list and notifying a block that calls a destroy action.

–Jp

---

<div class="post-metadata">

**Author:** ![telee](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@telee](https://discourse.chef.io/u/telee)\
**Post date:** [March 21, 2017, 12:53pm UTC](https://discourse.chef.io/t/chef-provisioning/10613/3 "2017-03-21T12:53:22Z")

</div>

dreamnite,  
Thnks for the suggestion. Can you provide me an example?

---

<div class="post-metadata">

**Author:** ![telee](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@telee](https://discourse.chef.io/u/telee)\
**Post date:** [March 21, 2017, 1:38pm UTC](https://discourse.chef.io/t/chef-provisioning/10613/4 "2017-03-21T13:38:06Z")

</div>

dreamnite,  
I tried your suggestion, however the converge action seems to reload the vm.
