Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Modeling > PGModel Commands

DeleteModel

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.5.1

Last changed in QPR 2012.2

 

Deletes the currently active server model.

 

Synopsis:

 

PGModel.DeleteModel

 

Parameters:

 

None.

 

Required Rights:

 

Administrator or model administrator rights to PGModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_NOT_AUTHENTICATED

RV_MODEL_NOT_OPEN

RV_MODEL_IS_NOT_SERVER_MODEL

RV_NO_RIGHTS_TO_MODEL

RV_UNKNOWN_ERROR

RV_SUCCESS

RV_FUNCTION_CANNOT_BE_USED_IN_VALIDATION_SCRIPT

 

Example Procedure:

 

iResult = PGModel.DeleteModel