delete_runtime_cache: Delete a runtime cache

View source: R/runtime-caches.R

delete_runtime_cacheR Documentation

Delete a runtime cache

Description

Delete a runtime cache from a Connect server. Requires Administrator privileges.

Usage

delete_runtime_cache(
  client,
  language,
  version,
  image_name = "Local",
  dry_run = FALSE
)

Arguments

client

A Connect object.

language

The language of the cache, either "R" or "Python".

version

The version of the cache, e.g. "4.3.3".

image_name

Optional. The name of the off-host execution image for the cache, or "Local" (the default) for native execution caches.

dry_run

Optional, default FALSE. If true, perform a dry run of the deletion.

Value

A Task object representing the deletion task. If dry_run is TRUE, returns NULL or throws an error if the deletion would fail.

See Also

get_runtime_caches()

Other server management functions: get_runtime_caches()

Examples

## Not run: 
client <- connect()
task <- delete_runtime_cache(client, "R", "4.3.3")
poll_task(task)

## End(Not run)


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.