> ## Documentation Index
> Fetch the complete documentation index at: https://docs.userorbit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Feedback

> Delete a feedback item. Only the creator can delete their own feedback.

## Authentication

Requires subscriber JWT token from login/identify.

```bash theme={null}
Authorization: Bearer SUBSCRIBER_JWT_TOKEN
```

## Request Body

<ParamField body="feedbackId" type="string" required>
  The feedback ID to delete
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Returns true if feedback was successfully deleted
</ResponseField>

<ResponseField name="feedbackId" type="string">
  The ID of the deleted feedback
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  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"
  }'
  ```

  ```javascript Node.js theme={null}
  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);
  ```

  ```python Python theme={null}
  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}')
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "feedbackId": "feedback-uuid"
  }
  ```
</ResponseExample>

## 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

```json 403 Forbidden theme={null}
{
  "error": "You do not have permission to delete this feedback",
  "statusCode": 403
}
```

```json 404 Not Found theme={null}
{
  "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
