ihuTagDeleteEx

You can use the ihuTagDeleteEx function to permanently delete a tag by passing TRUE as a parameter.

Prototype

ihuTagDeleteEx {
  in long serverhandle,
  in MSO Char * tagname,
  BOOL DeletePermanent
};

Remarks

Use DeletePermanent to create a new tag with a previously used name. The ihuTagDeleteEx function uses the following parameters:

  • serverhandle: The Historian server from which to fetch tags
  • tagname: Name of the tag to be deleted, which must be returned in a tag browse
  • DeletePermanent: Permanently deletes a tag when set to TRUE
Note: After you permanently delete a tag, you can no longer query its data, and the tag name is available for reuse.

Returns

  • ihuSTATUS_OK: Success
  • ihuSTATUS_INVALID_PARAMETER: Invalid input parameters
  • ihuSTATUS_ACCESS_DENIED: You do not have rights to delete tags
Note: You must be a member of the ihTag Admin security group to delete tags.