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

Chris picture Chris · Dec 23, 2015 · Viewed 11.8k times · Source

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

Answer

Ywain picture Ywain · Dec 23, 2015

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