You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stripe_accounts_controller.rb
    path of file: ./repos/openfoodnetwork/app/controllers/admin
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'stripe/account_connector'

module Admin
  class StripeAccountsController 
    
    def destroy
      stripe_account = StripeAccount.find(params[:id])
      authorize! :destroy, stripe_account

      if stripe_account.deauthorize_and_destroy
        flash[:success] = "Stripe account disconnected."
      else
        flash[:error] = "Failed to disconnect Stripe."
      end