Licence Protector

RemoveDeactivated

Hide Navigation Pane

RemoveDeactivated

Previous topic Next topic  

RemoveDeactivated

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

 

Removes all deactivated users, PCs or items from a module. The items have either to be deactivated using the License Viewer or with DeactivateEntry.

 

 

Name

RemoveDeactivated                                                                                    

Purpose

Physically removes all deactivated users, PCs or items from a module.

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Returncode

Returncode

Type Integer

Note

0

All deactivated users, PCs or items are removed

Other return codes

Operation failed, see list of return codes

Usage

Deactivate users or items and finally remove them from the license file by calling RemoveDeactivated

Sample

 

  iRes := lic.RemoveDeactivated(‘D1001’);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

ExistsEntry, DeactivateEntry, ActivateEntry, GetEntriesOfModule, IsEntryActivated, RemoveAllItem

 

You can remove all items independent of the fact if they are deactivated or not with the command RemoveAllItems