def delete_customer(customer_id):
 try:
  customer = stripe.Customer.retrieve(customer_id)
  return customer.delete()
 except stripe.error.InvalidRequestError:
  pass

def delete_customer ( customer_id ) : try : customer = stripe . Customer . retrieve ( customer_id ) return customer . delete ( ) except stripe . error . InvalidRequestError : pass
on gold subscription deletion .