Skip to content

Delete "Document" content type #1540

Discussion options

You must be logged in to vote

This is what we are currently doing for this, hopefully it helps:

// Remove default document content type
var docContentType = await accountList.ContentTypes.FirstOrDefaultAsync(x => x.Name.StartsWith("Document"), cancellationToken);
if (docContentType is not null)
{
    await docContentType.DeleteAsync();
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matjazreberc
Comment options

Answer selected by matjazreberc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants