delete data created by app on shinyapps.io

My app uses the logic found here: Shiny - Chat room, where the content of the chat box persists, for a while at least.

Current plan: have a button (hidden in maintenance panel, or something) with (not yet tested):

  if (file.exists("data.Rds")) {
    file.remove("data.Rds")
  }

My workaround is to redeploy the app with an empty RDS file. Seems like overkill.