View-Based DELETE

To delete a record from an object, send a DELETE request to any view which contains a delete link. Views that can accept a delete request include the following:

  • Tables
  • Lists
  • Searches
  • Calendars
  • Details

URL
DELETE https://api.knack.com/v1/pages/scene_xx/views/view_yy/records/record_ID

Parameters

ParameterExplanationExample
scene_xxscene keyscene_3
view_yyview keyview_5
record_IDA record’s ID575482d691e16d4235adcdb6

Headers

KeyValue
X-Knack-Application-IdYour application ID
X-Knack-REST-API-KEYknack
AuthorizationA user tokenvalid for the view (if view is nested under a login)

Example Request

# NOTE: In order for this request to work, you will need to add a "delete" link to the View Company Details view (on the Company Details page)
curl -X DELETE "https://api.knack.com/v1/pages/scene_10/views/view_9/records/586504ff070097a1461db2ae" \
  -H "X-Knack-Application-Id: YOUR-APP-ID" \
  -H "X-Knack-REST-API-Key: knack"

Example Response (200 OK)

{
  "delete": true
}

What’s Next