obsolete the old delete function and implement new one
Merge pull request #118 from phillip-haydon/Issue#109

obsolete the old delete function and implement new one