Addition of deletion for Defs.

Tested and works.