delete mfunction