diff --git a/datacenterlight/management/commands/deleteuser.py b/datacenterlight/management/commands/deleteuser.py index e508304b..4ba0c986 100644 --- a/datacenterlight/management/commands/deleteuser.py +++ b/datacenterlight/management/commands/deleteuser.py @@ -67,10 +67,10 @@ class Command(BaseCommand): "not exist".format(email)) sys.exit(1) stripe_customer = cus_user.stripecustomer - del_response = stripe.Customer.delete( + c = stripe.Customer.retrieve( stripe_customer.stripe_id ) - if del_response.deleted: + if c.delete(): logger.debug( "StripeCustomer {} associated with {} deleted" "".format(stripe_customer.stripe_id, email)