DeleteItem Method
Deletes an item permanently.
Syntax
async sharefile.deleteItem(itemId : string): Promise<void>
Remarks
This method deletes the item specified by ItemId permanently. Must call ListItems before the Item* properties property will be updated.
// Deletes the first item. shareFile.ListItems(); string ItemId = shareFile.Items[0].Id; shareFile.DeleteItem(ItemId);