I have an SP.ContentTypeCollection for a document library. I'm trying to add a selected one from the site's content types. I also need it to be the new DEFAULT content type for that library.
Thus, I've copied the document library's existing types to a list. Then I want to clear the content types and add my new one FIRST so it becomes default. Then I will add the others I copied.
PROBLEM: I can't find a way to delete one or all of the content types in the collection.
Help? :-) Thanks in advance.