<< Click to Display Table of Contents >>

DeleteItem

지정한 아이템을 삭제합니다.

Prototype

bool DeleteItem(string ItemFullPath, string Comment)

Parameters

ItemFullPath

아이템 전체 경로

Comment

주석

Reference

아이템이 삭제된 경우 true가 리턴되고, 실패한 경우 false가 리턴됩니다.

Example

function DeleteItem(){

   var rep = OZCreator.GetBuiltInObject(OZBuiltInObject.REPOSITORY);

   var login = rep.Login("admin","admin");

   if (login) {

       var itemFullPath = "/data/parameter_test.odi";

       var result = rep.DeleteItem(itemFullPath,"comment");

       if (result == true) {

           _DEBUG("result="+result);

       } else {

           _DEBUG("result="+result+" ["+rep.GetLastErrorCode()+"] "+rep.GetErrorMessageByCode(rep.GetLastErrorCode()));

       }

       rep.Logout();

   }

}