Ported delete.py to core

Change-Id: Ifbab6b64fcf6e58c0da3daed9ed21aeea7db4a7b
Merge "Ported delete.py to core"