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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to delete a term i...
Power Automate
Unanswered

How to delete a term in the term store via Power Automate

(0) ShareShare
ReportReport
Posted on by
I'm able to perform other CRUD operations on the term store, but I'm unable to delete a term from it.
 
An app has been created in AAD, and read/write/all permssions have been assigned for both SharePoint and Graph.  I'm able to get a bearer token in my workflow, so I'm guessing this has been set up correctly?  The account being used for the workflow actions has been explicitly given read/write permissions to the term store.  As I said, I'm able to perform the other CRUD actions, so I'm also guessing the permissions are set up correctly.
 
I've tried the below parameters in varying combinations in both the SharePoint and generic HTTP request actions.  I'm getting a range of errors, and I've added those to the URI's returning them.
 
URI's for bearer token:
1. https://login.microsoftonline.com/[SITE ID]/oauth2/token (no error)
2. https://login.microsoftonline.com/[SITE ID]/oauth2/v2.0/token (error: Invalid version: sites)
 
URI's for delete action:
1. https://graph.microsoft.com/beta/termStore/sets/[TERM SET ID]/terms/[TERM ID] (error: Either scp or roles claim need to be present in the token. * Since this was beta, I didn't investigate this and tried the other Graph URI)
2. https://graph.microsoft.com/sites/[SITE ID]/termStore/sets/[TERM SET ID]/terms/[TERM ID] (error: Access token validation failure. Invalid audience.)
3. /_api/v2.1/termStore/groups/[GROUP ID]/sets/[TERM SET ID]/terms/[TERM ID] (error: InternalServerError)
 
Method: DELETE
 
Headers:
1. Content-Type = application/json
2. Authorization = Bearer [BEARER TOKEN]
 
I appeciate any help you can provide.
Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard