Skip to contents

Deletes a collection from collection_index. Note that this does NOT delete associated artworks - they will become orphaned (collection_uuid will reference a non-existent collection).

Use with caution. Consider reassigning artworks to another collection before deletion.

Usage

delete_collection(collection, cn = NULL)

Arguments

collection

Character. Collection UUID. Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

NULL invisibly. Deletes database record as side effect.