Delete Event
curl --request DELETE \
--url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventIdimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId', 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.sublay.io/api/v6/:projectId/api/v7/events/:eventId",
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.sublay.io/api/v6/:projectId/api/v7/events/:eventId"
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.sublay.io/api/v6/:projectId/api/v7/events/:eventId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId")
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_bodyEvent Endpoints
Delete Event
Permanently or soft-delete an event and clean up its children (host-only)
DELETE
/
:projectId
/
api
/
v7
/
events
/
:eventId
Delete Event
curl --request DELETE \
--url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventIdimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId', 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.sublay.io/api/v6/:projectId/api/v7/events/:eventId",
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.sublay.io/api/v6/:projectId/api/v7/events/:eventId"
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.sublay.io/api/v6/:projectId/api/v7/events/:eventId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId")
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_bodyDeletes an event. Host-only (service/master keys bypass the host check). The event’s child
See also: useDeleteEvent
EventRsvps and EventInvites are cleaned up, and—depending on settings—its files.
Deletion honors the project’s eventDeletion settings:
softDelete(defaultfalse) — whentrue, the event is soft-deleted (adeletedAttimestamp is set) and drops out of listings while the row is retained.preserveFilesOnSoftDelete(defaulttrue) — on a soft delete, keep the event’s files. On a hard delete, files are always removed.
Path Parameters
string
required
UUID of the event to delete.
Response
Returns204 No Content on success.
Error Responses
Not Found — 404
Not Found — 404
{ "error": "Event not found", "code": "event/not-found" }
Forbidden (not a host) — 403
Forbidden (not a host) — 403
{ "error": "Only a host of this event may delete it.", "code": "event/forbidden" }
Already Deleted — 404
Already Deleted — 404
{ "error": "Event not found or already deleted.", "code": "event/delete-failed" }

