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: event_types_controller.rb
    path of file: ./repos/osem/app/controllers/admin
    
    the code of the file until where you have to start completion: # frozen_string_
    
    def destroy
      if @event_type.destroy
        redirect_to admin_conference_program_event_types_path(conference_id: @conference.short_title),
                    notice: 'Event type successfully deleted.'
      else
        redirect_to admin_conference_program_event_types_path(conference_id: @conference.short_title),
                    error: 'Destroying event type failed! '\
                    "#{@event_type.errors.full_messages.join('. ')}."
      end