![]() |
As defined in xcapi.h
| xerr xcDeleteItemByString( | xhandle container, |
| const char *key_string, | |
| xuint64 turnkey, | |
| xuint32 slot); |
Description:
Removes the specified item from persistent storage on the Exegy appliance. If the function returns XSUCCESS, the caller can expect at least one callback (event notification) for the targeted slot. Upon successful completion of the delete operation, any data in the targeted slot is cleared, and the slot is returned to an empty state. If other objects (of any type) are subscribed to a data item at the time it is deleted from permanent storage, those objects also receive a callback as notification of the delete: in addition, the slots associated with the deleted data item are cleared, and the objects stop receiving data updates for the item/slot. (While the delete operation is pending, the usual callbacks/events associated with the data item continue to occur uninterrupted.)
Restrictions:
Parameters:
Returns:
An xerr type indicating the status of the operation.
Common error codes:
XSUCCESS The operation completed successfully.
XINVAL An invalid parameter was supplied.
XBADSLOT Specified slot range is not valid.
XTYPE Specified container is not of a compatible type.
XBADSTATE Specified key does not match existing key in a non-empty slot.
XNOTCONNECTED Session not connected.
XBADHANDLE Invalid handle.
XREADONLY Invalid call for read-only field or container.