Add the actual delete function call
Fixed attribute syntax error in debug stmt