Deletes the item.
This permanently deletes the item. To put the item in the Recycle Bin, use the Recycle method.
The following example permanently deletes an item from the database.
{{{
public bool DeleteItem(Item item, string userResponse) {
if (userResponse == "yes") {
item.Delete();
return true;
}
return false;
}
}}}
Item Class | Sitecore.Data.Items Namespace