# Execute command on deletion

**URL:** https://forum.highend3d.com/t/execute-command-on-deletion/6622
**Category:** Maya
**Tags:** mel
**Created:** [January 7, 2002, 4:29pm UTC](https://forum.highend3d.com/t/execute-command-on-deletion/6622 "2002-01-07T16:29:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![captainjim](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@captainjim](https://forum.highend3d.com/u/captainjim)
#### Post date: [January 7, 2002, 4:29pm UTC](https://forum.highend3d.com/t/execute-command-on-deletion/6622/1 "2002-01-07T16:29:40Z")

</div>

Does anyone know if there is a way to 'prime' an object in maya, so that when it is deleted a MEL script is exectuted?

---

<div class="post-metadata">

### Author: ![wcy93](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/w/8797f3/32.png) [@wcy93](https://forum.highend3d.com/u/wcy93)
#### Post date: [January 8, 2002, 4:01am UTC](https://forum.highend3d.com/t/execute-command-on-deletion/6622/2 "2002-01-08T04:01:39Z")

</div>

> [@](#):
>
> In reply to:   
> Does anyone know if there is a way to 'prime' an object in maya, so that when it is deleted a MEL script is exectuted?

i think yu can do things like that with the "scriptjob" command. have a look into it.
