In a shiny app hosted with shinyapps.io, I save data locally in RDS format. Can I access and delete the data outside the app?
If not, my plan is to have a "maintenance" button on the app to reset the data. From within the app, I'm able to access the data with this:
if (file.exists("data.Rds")){
vars$data <- readRDS("data.Rds")
}
and from here delete the file content (untested, but seems feasible). But that would expose the functionality to anyone using the app. Is there instead a sequence of steps I can follow via terminal and authentification to access and delete the data? Thanks!