Skip to content

Instantly share code, notes, and snippets.

@davidknipe
Created June 2, 2015 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidknipe/fd6a5d038a05bf07cc9b to your computer and use it in GitHub Desktop.
Save davidknipe/fd6a5d038a05bf07cc9b to your computer and use it in GitHub Desktop.
Removing items from an EPiServer Project
/// <summary>
/// Removing items from a project
/// </summary>
/// <param name="repo">The ProjectRepository instance</param>
/// <param name="projectItem">The project item(s) to remove</param>
public void RemoveItemsFromProject(ProjectRepository repo, IList<ProjectItem> projectItem)
{
repo.DeleteItems(projectItem.Select(x => x.ID));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment