ext_uninstall: Uninstall a DuckDB extension

View source: R/extensions.R

ext_uninstallR Documentation

Uninstall a DuckDB extension

Description

Removes the extension file from DuckDB's extension_directory. Optionally also purges the corresponding entry from the local cache.

Usage

ext_uninstall(
  name,
  purge_cache = FALSE,
  cache = ext_cache(),
  conn = conn_default()
)

Arguments

name

Character scalar. Extension name.

purge_cache

Logical. If TRUE, also removes the file from cache.

cache

An ext_cache object. Only used when purge_cache = TRUE.

conn

A DuckDB connection. Defaults to conn_default().

Value

Invisibly returns conn.

Examples

## Not run: 
# Requires a connection with the extension already installed.
conn <- DBI::dbConnect(duckdb::duckdb())
ext_uninstall("httpfs", conn = conn)
DBI::dbDisconnect(conn, shutdown = TRUE)

## End(Not run)

quak documentation built on June 9, 2026, 5:09 p.m.