# Del proc (datum)

Source: https://ref.dm-lang.org/datum/proc/Del

### Format
> `Del()`

### When
> Called when the object is destroyed, for example by using the `del` instruction.

### Default action
> Delete the object. The contents of atomic objects are also destroyed at this time, as though `del` were called on each one of them.

When the world is destroyed, the `Del()` proc is not automatically called. The only object for which it is called is [/world](https://ref.dm-lang.org/world/index.md). If you need the `Del()` proc for a particular object to be called at that time, you should explicitly call it from `world/Del()`.

> [!note]
> 
> **Always** call `..()` at the end of the proc if you override it.

### See also
- [del proc](https://ref.dm-lang.org/proc/del.md)
- [garbage collection](https://ref.dm-lang.org/DM/garbage.md)
