| galaxy_delete_history | R Documentation |
galaxy_delete_history() is an S4 generic. With x as a character scalar,
it is treated as a history ID and the function returns API response metadata.
With x as a Galaxy object, history_id and galaxy_url are taken from
the object and the object state is updated.
galaxy_delete_history(
x,
purge = FALSE,
galaxy_url = "https://usegalaxy.eu",
verbose = FALSE
)
## S4 method for signature 'character'
galaxy_delete_history(
x,
purge = FALSE,
galaxy_url = "https://usegalaxy.eu",
verbose = FALSE
)
## S4 method for signature 'Galaxy'
galaxy_delete_history(x, purge = FALSE, verbose = FALSE)
x |
A history ID ( |
purge |
Logical. If |
galaxy_url |
Character. Base URL of the Galaxy instance, used by the
character method. If |
verbose |
Logical. If |
The function calls DELETE /api/histories/{history_id} with optional
purge=TRUE to request permanent removal (server policy permitting).
For the character method: a named list with success, status, content.
For the Galaxy method: the modified Galaxy object (state set to
"success" on 2xx, otherwise "error").
## Not run:
# Character method
hid <- galaxy_initialize("history to delete")
galaxy_delete_history(hid, purge = FALSE)
# Galaxy method
g <- galaxy(history_name = "history to delete")
g <- galaxy_initialize(g)
g <- galaxy_delete_history(g, purge = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.