✨ Delete annotation history items

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Delete all annotation history items for a specific annotation, task or project. This method is available only for users with administrator roles.

Authentication

Authorizationstring
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>

Query parameters

annotationintegerOptional
Annotation ID to delete annotation history items for.
projectintegerOptional
Project ID to delete annotation history items for.
taskintegerOptional
Task ID to delete annotation history items for.

Response

Returns a dict containing the count of removed items.
removedinteger or null
Number of removed items