Deleting data via API

I have set up a source. I have now successfully used the API to retrieve the data from the source. I now need to know how to use the API to delete specific data records in the source when I am done with them. Sorry, I am a little overwhelmed by your extensive API. Can I have some instruction on how to do this? Thanks… Seth

Hi @parellifoundation100 yes, happy to help.

You can delete events by their event ID using this endpoint. Those docs include instructions for listing an event’s ID so you can pass it to that endpoint.

If it helps, Pipedream only retains the last 100 source events. Once you send your 101st event, the 1st event will be automatically deleted, and so on.

Believe it or not I am finally getting back to this project. I have tried the following syntax in the native cURL app in Windows to delete one event: -X DELETE -H “Authorization:Bearer (my api key)”

(I have substituted my real api key for (my api key). I am getting this response:

{“error”:“record not found”}‘end_id’ is not recognized as an internal or external command,
operable program or batch file.

Obviously I am missing something in the syntax. I have double checked that the id I am using is correct. I am getting the id from the event.body.ts_event. Can you see anything I might be doing wrong?