Show/Hide Toolbars

Licence Protector 5

 

Removes (deletes) all users, PCs or items from a module. The license for each item is then available again.

 

Sample

6 user license: 4 users are using a license and 2 licenses are free. After using RemoveAllItems all 6 licenses are available again.

 

Name

RemoveAllItems                                                                                        

Purpose

Physically removes all 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 users, PCs or items are removed

Other return codes

Operation failed, see list of return codes

Usage

Remove all users or items (not only the deactivated ones) from the license file by calling RemoveAllItems.

Sample

 

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

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << module is now empty, no items or modules in it anymore, continue >>

     ...

See also

ExistsEntry, DeactivateEntry, ActivateEntry, GetEntriesOfModule, IsEntryActivated, RemoveDeactivated

 

If you want to remove only a single item / user, then

 

Deactivate the item / user

Remove the deactivated item / user with command RemoveDeactivated.