View source: R/2025-10-27_JF_R_Galaxy_functions.R
| galaxy_delete_datasets | R Documentation |
Convenience wrapper that deletes a vector of dataset IDs using
galaxy_delete_dataset. Requests are paced with a small
sleep between calls to avoid overwhelming the server.
galaxy_delete_datasets(
output_ids,
purge = TRUE,
sleep = 0.2,
galaxy_url = "https://usegalaxy.eu"
)
output_ids |
Character vector of dataset IDs to delete. |
purge |
Logical. Passed to |
sleep |
Numeric. Seconds to wait between API calls. Default: |
galaxy_url |
Character. Base URL of the Galaxy instance
(for example |
A named list where each element is the return value from
galaxy_delete_dataset for the corresponding dataset ID.
input_file <- tempfile(fileext = ".txt")
input_file2 <- tempfile(fileext = ".txt")
test_text <- "This is an example \nfile."
writeLines(test_text,input_file)
writeLines(test_text,input_file2)
history_id <- galaxy_initialize("test upload")
dataset_id <- galaxy_upload_https(input_file, history_id)
dataset_id2 <- galaxy_upload_https(input_file2, history_id)
galaxy_delete_datasets(list(output_ids = c(dataset_id, dataset_id2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.