How to delete the Logs on Stripe in a test environment

hilbiazhar picture hilbiazhar · Feb 21, 2016 · Viewed 7.5k times · Source

I am using Stripe to carry out some test transactions on supposed customers from a CodeIgniter application. For some reason, to re-create a Stripe > Plan with the same old id and name online or to re-enter the Stripe customer into the Stripe > Customers through the API I have to clear the test data. When I clear the test data it clears the test data except the Logs.

Now what happens when I re-create a Stripe > Plan, it automatically gets the deleted customer from the Logs. As I don't need the old customer in the plan as I might have changed its credentials.

So how to delete/clear the Logs on Stripe in a test environment?

Answer

Christopher Stevens picture Christopher Stevens · Jun 20, 2017

This is an older question, but a Google search brought me here, requiring an answer after my own trial and error (correct solution may have changed over time).

  1. Login to the Stripe dashboard
  2. Choose "Business Settings" on the bottom-left of the page.
  3. Choose "Data" on the left menu.
  4. Select the gray "Delete all test data..." button.
  5. Select the red "Delete Now" button on the confirmation modal.
  6. It may ask to confirm your password before proceeding.