Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I clear test data in Stripe via the API?

I'm familiar with the process of clearing test data via the dashboard in Stripe (as per the image).

For testing purposes, I would like to clear the test data as part of the tear down process of our unit tests - to have a clean state at the end of each test cycle.

The API documentation doesn't mention anything, so is there an undocumented way to clear the test data?

Just a note, in the new dashboard, test data deletion lives on the Developers tab:

enter image description here

like image 826
Chris Avatar asked Dec 23 '15 06:12

Chris


1 Answers

No, it isn't possible to clean all test data via the API -- only via the dashboard. Sorry!

In the Dashboard, the option now lives at the bottom of the Developers page

like image 190
Ywain Avatar answered Sep 18 '22 08:09

Ywain