using System.Threading; using System.Threading.Tasks; using MediaBrowser.Controller.Entities; namespace MediaBrowser.Controller.Channels { /// /// Interface for channels that support deleting items. /// public interface ISupportsDelete { /// /// Gets a value indicating whether the item can be deleted. /// /// The item. /// true if the item can be deleted, false otherwise. bool CanDelete(BaseItem item); /// /// Deletes the item with the provided id. /// /// The item id. /// The cancellation token. /// A task representing the deletion of the item. Task DeleteItem(string id, CancellationToken cancellationToken); } }