How can I delete archived data

How can I delete archived data? Please help me delete all archived data

Builder content link

Builder public api key
8102a91244d54f29aa0462cc10eafd1e

Hello @Kenz,

To delete the archived builder content entries, you can follow the below steps

  1. Filter the content to show only archived items:
  1. Select and delete the filtered archived content:
  • Once you have filtered the list to show only archived items, select all entries you want to delete.
  • Click the delete button. This action will permanently delete the archived content, and this cannot be undone.

Alternatively, you can delete specific archived items via the API by sending a DELETE request as shown below:

curl https://builder.io/api/v1/write/MODEL_NAME/ENTRY_ID \
  -X DELETE \
  -H 'Authorization: Bearer YOUR_PRIVATE_KEY'

# Example response
# {
#  "message": "Success"
# }

References:

No, this is data in model. i have many record and i cant delete single 2k record :smiley:

Hello @Kenz,

If you need to delete multiple data model entries or records in bulk, the only option available seems to be using the write API. You can either delete the entire content entry, or if you want to delete specific field data, you can use the write API PATCH/PUT request to update the custom fields in the data model.