Delete session annotations in a project that match the supplied filter.
curl --request DELETE \
--url https://api.example.com/v1/projects/{project_identifier}/session_annotationsimport requests
url = "https://api.example.com/v1/projects/{project_identifier}/session_annotations"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/v1/projects/{project_identifier}/session_annotations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/projects/{project_identifier}/session_annotations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/projects/{project_identifier}/session_annotations"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/v1/projects/{project_identifier}/session_annotations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/projects/{project_identifier}/session_annotations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body<string><string><string>Annotations
Delete session annotations in a project that match the supplied filter.
Hard-delete session annotations within the named project that match the supplied filter.
- The request must either supply both
start_timeANDend_timeto bound the delete to a[start_time, end_time)time window, OR setdelete_all=trueto acknowledge an unbounded sweep. A request that satisfies neither is rejected with 422. name,identifier, andannotator_kindare optional narrowing filters; on their own they do NOT authorize the request — they only narrow within an already-authorized request (bounded time range ordelete_all=true).- All supplied filters are combined with AND.
nameandidentifier, when present, must be non-empty. start_timeis inclusive (>=);end_timeis exclusive (<). When both are supplied,start_timemust be strictly earlier thanend_time(else 422). A half-bounded range (only one of the two) does NOT satisfy the gate and is rejected unlessdelete_all=trueis also set. Naive datetimes are interpreted as UTC.- The endpoint is idempotent: a request that matches no rows still returns 204.
- When authentication is enabled, non-admin callers can only delete rows
they own (
user_id == current_user.id); admins delete all matching rows.
DELETE
/
v1
/
projects
/
{project_identifier}
/
session_annotations
Delete session annotations in a project that match the supplied filter.
curl --request DELETE \
--url https://api.example.com/v1/projects/{project_identifier}/session_annotationsimport requests
url = "https://api.example.com/v1/projects/{project_identifier}/session_annotations"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/v1/projects/{project_identifier}/session_annotations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/projects/{project_identifier}/session_annotations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/projects/{project_identifier}/session_annotations"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/v1/projects/{project_identifier}/session_annotations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/projects/{project_identifier}/session_annotations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body<string><string><string>Path Parameters
Query Parameters
Opt-in flag that authorizes the request without a bounded [start_time, end_time) time window. When false (default) or absent, the request must supply both start_time AND end_time to bound the delete. When true, the time-range bound is waived and any other filters (name, identifier, annotator_kind) still narrow the delete within the project — e.g. delete_all=true&name=X deletes all annotations named X regardless of time.
Response
Successful Response
Was this page helpful?

