code: def delete_room(room, reason=''):
      
  
      if room.custom_server:
          return
  
      def _delete_room(xmpp):
          muc = xmpp.plugin['xep_0045']
          muc.destroy(room.jid, reason=reason)
  
      current_plugin.logger.info('Deleting room %s', room.jid)
      _execute_xmpp(_delete_room)
      delete_logs(room)
docs: Deletes a MUC room from the XMPP server.