Ported the Delete private method.