powered by
Remove a saved R object from Goose's memory system.
goose_delete(name, category = "r_objects", global = TRUE, confirm = TRUE)
Invisibly returns TRUE if successful
Character string. Name of the object to delete
Character string. Category where the object was saved (default: "r_objects")
Logical. If TRUE (default), deletes from global memory. If FALSE, deletes from project-local memory.
Logical. If TRUE (default), asks for confirmation before deleting.
if (FALSE) { # Delete an object goose_delete("old_model", category = "models") # Delete without confirmation goose_delete("temp_data", confirm = FALSE) }
Run the code above in your browser using DataLab