delete_glossary2: Delete a Glossary with the DeepL API Free

View source: R/delete_glossary2.R

delete_glossary2R Documentation

Delete a Glossary with the DeepL API Free

Description

delete_glossary2 deletes a glossary from your DeepL API Free account using its unique ID.

Usage

delete_glossary2(glossary_id, auth_key)

Arguments

glossary_id

A string specifying the unique ID of the glossary to be deleted.

auth_key

A string representing the authentication key for the DeepL API Free. If not provided, the function will attempt to retrieve the key from the environment variable DEEPL_API_KEY. You can set this variable using Sys.setenv(DEEPL_API_KEY = "your_key") or define it in your .Renviron file for persistent use.

Details

Deleting a glossary is permanent and cannot be undone. If needed, you can back up glossary entries in advance using get_glossary_entries2.

To use this function, you must obtain an authentication key by registering for a DeepL API Free account at DeepL API Free.

For a list of available glossaries and their metadata, see list_glossaries2.

Value

No return value. A confirmation message is printed upon successful deletion.

References

DeepL API Documentation on Glossary Deletion

Examples

## Not run: 
glossary_id <- "example-glossary-id"
delete_glossary2(glossary_id)

## End(Not run)

deeplr documentation built on June 8, 2025, 12:47 p.m.