#' Supprime un dataset
#'
#' @param dataset un identifiant de dataset
#'
#' @return TRUE
#' @export
#'
#' @examples
#' \dontrun{
#' list_datasets() %>%
#' filter(str_detect(title, "didoscalim")) %>%
#' select(id) %>%
#' pmap(~ delete_dataset(..1))
#' }
#' @export
#' @keywords internal
delete_dataset <- function(dataset) {
if (missing(dataset)) abort_bad_argument("dataset")
if (is.null(get_dataset_id(dataset))) abort_not_dataset()
url <- glue::glue("/datasets/{get_dataset_id(dataset)}")
dido_api(method = "DELETE", path = url)
invisible(TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.