def METHOD_NAME(self, item_name, item_parent=None, index=None):
    """Deletes an item.
    Parameters
    ----------
    item_name: str
        The name of the item to be deleted.
    item_parent: str or None, optional
        The parent item. (default=None)
    index: int or None, optional
        The index of the item in the parent sequence, if
    """
    if self.var.start == item_name:
        self.notify(
            u'You cannot delete the entry point of the experiment!')
        return
    for item in self.items:
        self.items[item].METHOD_NAME(item_name, item_parent, index)
    self.main_window.close_item_tab(item_name)