web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Deleting site columns ...
Power Automate
Answered

Deleting site columns from Content Types

(0) ShareShare
ReportReport
Posted on by 2
Hi
 
Has anyone successfully deleted site columns from the Documents Content Type using Power Automate.
I created a flow that adds sites columns to the Documents Content Type, now I want to create a way to retract the changes, if needed.
 
I have added a Https request that gets the fieldlinks > id first, using:

/_api/web/contenttypes('0x0101')/FieldLinks?$filter=Name eq '@{items('Apply_to_each_2')?['InternalName']}'
 
then I am trying to delete using another request using:

/_api/web/contenttypes('0x0101')/FieldLinks('@{first(body('Send_an_HTTP_request_to_SharePoint_-_Get_FieldLinks')?['d']?['results'])?['ID']}')/deleteObject()
 
The request succeeds, the response body is blank and the column still exists in the content type.
 
Any ideas?
 
 
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    Personally I haven't seen the FieldLinks part working with just a delete object method. But that might also require an update to the content type as well?
     
    I have recently used the delete columnDefinition method of the Graph API instead.
     
    Below is an example of that.
     
    _api/v2.0/sites/@{variables('SiteId')}/contentTypes/@{variables('ContentTypeId')}/columns/@{first(outputs('Send_an_HTTP_request_to_SharePoint_-_Get_Column')?['body']['value'])['id']}
     


    Also double check if your Content Type is editable, before you run the flow




     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel


     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard