- DeleteObject returns Null if it succeeds in deleting all given objects, and $Failed otherwise.
- DeleteObject works on CloudObject, LocalObject, PersistentObject, PersistenceLocation, ResourceObject, Databin, ChannelObject, ExternalSessionObject, SocketListener, PermissionsGroup and PermissionsKey.
- DeleteObject deletes files and directories without asking for confirmation.
Examplesopen allclose all
Remove all persistent objects with a given key on $ContextPath:
Use Once for a form of dynamic programming, using a custom location to cache the values computed:
Wolfram Research (2017), DeleteObject, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteObject.html.
Wolfram Language. 2017. "DeleteObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeleteObject.html.
Wolfram Language. (2017). DeleteObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeleteObject.html