title: Shiny selectizeInput with feature "remove all-at-once"
body: <p><strong>Example:</strong></p>
  
  <p>Following shiny example <code>app.R</code> file contains a <code>selectizeInput</code> UI. The selected elements can be removed by using <code>options = list(plugins= list('remove_button'))</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/ya3DY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ya3DY.png" alt="enter image description here"></a></p>
  
  <pre><code>library(shiny)
  library(dplyr)
  
  ui= fluidPage(
    sidebarLayout(
      sidebarPanel(
        selectizeInput(inputId= "cyl", label= "cyl", 
                       choices= sort(unique(mtcars$cyl)), 
                       selected= sort(unique(mtcars$cyl)),
                       multiple=T,
                       options = list(plugins= list('remove_button')))
      ),
      mainPanel(
        tableOutput("tab")
      )
    )
  )
  
  server= function(input, output) {
    df_filtered= reactive({
      mtcars %&gt;%
      {if (is.null(input$cyl)) . else filter(., cyl %in% input$cyl)}
    })
    output$tab= renderTable(df_filtered())
  }
  
  shinyApp(ui, server)
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there an selectize.js option accessible in shiny which adds a feature "<em>remove all-at-once</em>" instead of the "remove one-by-one" as shown in the example?</p>
  
  <p>I studied the <a href="https://github.com/selectize/selectize.js" rel="nofollow noreferrer">selectize.js docu</a> but got stuck.</p>