curl --request DELETE \
--url https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}import requests
url = "https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}', 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://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}",
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://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}"
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://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}")
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{
"entry_id": "<string>",
"plan_version": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Remove Entry
Remove one entry from a day — the inverse of add_place / add_day_note.
The removal is apply_plan_actions + RemoveEntryAction — the same pair
the LLM edit path uses (plan/edit_subagent.py, stream_processing.py),
rather than a second implementation of “filter the day’s entries”. Note the
web does NOT go through this: it removes client-side in
lib/plan-mutations.ts and PUTs the whole plan. What the two share is
EditablePlan.save, which mirrors that PUT’s validate-then-save.
Nothing else is needed here: item_refs is a read-time derived index that
PlanRepository.assemble_content reconstitutes as [] on every load.
RemoveEntryAction filters, so removing an entry that isn’t there succeeds silently — that would report a deletion which never happened, so a missing entry_id 404s instead.
The itinerary activity is deliberately left in place: another day may reference it, and an orphaned activity is invisible rather than wrong.
curl --request DELETE \
--url https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}import requests
url = "https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}', 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://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}",
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://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}"
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://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stardrift.ai/api/v1/trips/{trip_id}/days/{day_number}/entries/{entry_id}")
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{
"entry_id": "<string>",
"plan_version": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}