ResourceRemove[resource]
removes the specified resource from the system on which it is run.
ResourceRemove
Wolfram Language Repositories »ResourceRemove[resource]
removes the specified resource from the system on which it is run.
Details
- ResourceRemove deletes both the locally stored content and metadata.
- For user-created resources, ResourceRemove permanently deletes the resource. For resources hosted in the public repository, only the local cache is deleted.
- ResourceRemove returns the unique ID of the removed resource.
- ResourceRemove[ResourceObject[…]] is equivalent to DeleteObject[ResourceObject[…]].
Examples
open all close allBasic Examples (1)
Retrieve a ResourceFunction:
wood = ResourceFunction["WoodFramed"]Remove it from your local system:
ResourceRemove[wood]Scope (2)
Create a new resource and import the contents:
ro = ResourceObject[<|"Name" -> "100 Primes", "ResourceType" -> "DataResource", "Content" -> Prime /@ Range[100]|>]ResourceData[ro]LocalCache[ro]Removing the resource deletes the local storage:
ResourceRemove[ro]ResourceData[ro]Get the contents of a resource from the data repository:
ro = ResourceObject["Friends, Romans, Countrymen"]Snippet[Get[ro]]The content is cached locally:
ro["ContentElementLocations"]After removing the local cache, the content is still available in a CloudObject:
ResourceRemove[ro]ro["ContentElementLocations"]Properties & Relations (2)
ResourceObject content is typically cached on the local system for faster retrieval:
RepeatedTiming[LLMResourceFunction["ELI5"]]After removing the resource, the content must be downloaded again, taking more time:
ResourceRemove[ResourceObject["Prompt" -> "ELI5"]]AbsoluteTiming[LLMResourceFunction["ELI5"]]For a ResourceObject, ResourceRemove does the same thing as DeleteObject. First, remove a resource with ResourceRemove:
ResourceObject["Meteorite Landings"]ResourceRemove[ResourceObject["Meteorite Landings"]]Use DeleteObject instead:
ResourceObject["Meteorite Landings"]DeleteObject[ResourceObject["Meteorite Landings"]]Related Guides
Related Links
History
Text
Wolfram Research (2016), ResourceRemove, Wolfram Language function, https://reference.wolfram.com/language/ref/ResourceRemove.html.
CMS
Wolfram Language. 2016. "ResourceRemove." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ResourceRemove.html.
APA
Wolfram Language. (2016). ResourceRemove. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ResourceRemove.html
BibTeX
@misc{reference.wolfram_2026_resourceremove, author="Wolfram Research", title="{ResourceRemove}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/ResourceRemove.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_resourceremove, organization={Wolfram Research}, title={ResourceRemove}, year={2016}, url={https://reference.wolfram.com/language/ref/ResourceRemove.html}, note=[Accessed: 12-June-2026]}