Delete "Document" content type #1540
Answered
by
Amwins-Vault-Boy
matjazreberc
asked this question in
Q&A
-
Hello! I want to use only my own content type. Thank you, Matjaz |
Beta Was this translation helpful? Give feedback.
Answered by
Amwins-Vault-Boy
Sep 23, 2024
Replies: 1 comment 1 reply
-
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();
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matjazreberc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what we are currently doing for this, hopefully it helps: