curl --location --request POST 'https://api.userorbit.com/v1/public/feedbacks.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"feedbackId": "feedback-uuid"
}'
const response = await fetch('https://api.userorbit.com/v1/public/feedbacks.delete', {
method: 'POST',
headers: {
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
feedbackId: 'feedback-uuid'
})
});
const { success } = await response.json();
console.log('Feedback deleted:', success);
import requests
response = requests.post(
'https://api.userorbit.com/v1/public/feedbacks.delete',
headers={
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
json={
'feedbackId': 'feedback-uuid'
}
)
success = response.json()['success']
print(f'Feedback deleted: {success}')
{
"success": true,
"feedbackId": "feedback-uuid"
}
Management
Delete Feedback
Delete a feedback item. Only the creator can delete their own feedback.
POST
/
v1
/
public
/
feedbacks.delete
curl --location --request POST 'https://api.userorbit.com/v1/public/feedbacks.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"feedbackId": "feedback-uuid"
}'
const response = await fetch('https://api.userorbit.com/v1/public/feedbacks.delete', {
method: 'POST',
headers: {
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
feedbackId: 'feedback-uuid'
})
});
const { success } = await response.json();
console.log('Feedback deleted:', success);
import requests
response = requests.post(
'https://api.userorbit.com/v1/public/feedbacks.delete',
headers={
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
json={
'feedbackId': 'feedback-uuid'
}
)
success = response.json()['success']
print(f'Feedback deleted: {success}')
{
"success": true,
"feedbackId": "feedback-uuid"
}
Authentication
Requires subscriber JWT token from login/identify.Authorization: Bearer SUBSCRIBER_JWT_TOKEN
Request Body
string
required
The feedback ID to delete
Response
boolean
Returns true if feedback was successfully deleted
string
The ID of the deleted feedback
curl --location --request POST 'https://api.userorbit.com/v1/public/feedbacks.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"feedbackId": "feedback-uuid"
}'
const response = await fetch('https://api.userorbit.com/v1/public/feedbacks.delete', {
method: 'POST',
headers: {
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
feedbackId: 'feedback-uuid'
})
});
const { success } = await response.json();
console.log('Feedback deleted:', success);
import requests
response = requests.post(
'https://api.userorbit.com/v1/public/feedbacks.delete',
headers={
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
json={
'feedbackId': 'feedback-uuid'
}
)
success = response.json()['success']
print(f'Feedback deleted: {success}')
{
"success": true,
"feedbackId": "feedback-uuid"
}
Behavior
- Creator Only: Only the feedback creator can delete it
- Permanent: Deletion is permanent and cannot be undone
- Cascade: Deletes associated comments and votes
- Notifications: Subscribers are notified of deletion
Use Cases
- Remove Feedback: Allow users to delete their submissions
- Duplicate Removal: Delete duplicate feedback items
- Privacy: Remove feedback that contains sensitive information
Error Responses
403 Forbidden
{
"error": "You do not have permission to delete this feedback",
"statusCode": 403
}
404 Not Found
{
"error": "Feedback not found",
"statusCode": 404
}
Notes
- Requires valid subscriber JWT token
- Only the creator can delete (checked via subscriber ID)
- Returns 403 if user is not the creator
- Returns 404 if feedback doesn’t exist
- Deletion is permanent - associated comments and votes are also removed
- Triggers webhook events if configured
Was this page helpful?

