Free up a currently occupied slot

Behaviour

  • Free the specified slot, releasing any object that was slotted there

Definition

int64_t slot_clear (
    uint32_t slot_no
);

Example

slot_clear(1); // assumes a transaction is slotted into slot=1

Parameters

NameTypeDescription
slot_nouint32_tThe slot number

Return Code

TypeDescription
int64_t1 or an error

If negative, an error:
DOESNT_EXIST
- the specified slot does not contain any object or it is an invalid slot