WOLFRAM

deletes the object obj.

DeleteObject[{obj1,obj2,}]

deletes all the obji.

Details

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

Remove a local object:

Out[1]=1

Scope  (12)Survey of the scope of standard use cases

Remove a local object:

Out[1]=1

Remove a persistent object:

Remove all persistent objects with a given key on $ContextPath:

Remove all persistent objects of a given persistence location:

Create a cloud object:

Out[1]=1

Remove the cloud object:

Create a directory cloud object:

Out[3]=3

Add something to the directory:

Out[4]=4

Remove the directory cloud object and its contents:

Remove a channel object:

Out[1]=1

Permanently delete a databin:

Out[1]=1

Create, cache and use a data resource object:

Out[1]=1
Out[2]=2
Out[3]=3

Delete the resource:

Retrieve a resource from the public data repository:

Out[1]=1

Remove the local cache of the resource:

Start an external session:

Out[1]=1

Stop the session:

Start listening on an available socket, applying a handler function to events:

Out[1]=1

Stop the session:

Create and then remove a permissions group:

Out[1]=1

Remove permissions keys from any cloud objects that are using them:

Out[1]=1

Use Once for a form of dynamic programming, using a custom location to cache the values computed:

Out[2]=2

Find the number of cached values generated:

Out[3]=3

Remove the cached values before redoing the timing experiment by deleting the custom persistence location:

Properties & Relations  (3)Properties of the function, and connections to other functions

Symbols and local symbols are removed with Remove:

Files are deleted with DeleteFile:

Out[1]=1

In contrast to the default behavior of DeleteDirectory, DeleteObject deletes cloud directories even if they contain other objects:

Out[1]=1
Out[2]=2
Out[4]=4
Wolfram Research (2017), DeleteObject, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteObject.html.
Wolfram Research (2017), DeleteObject, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteObject.html.

Text

Wolfram Research (2017), DeleteObject, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteObject.html.

Wolfram Research (2017), DeleteObject, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteObject.html.

CMS

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. Wolfram Research. https://reference.wolfram.com/language/ref/DeleteObject.html.

APA

Wolfram Language. (2017). DeleteObject. Wolfram Language & System Documentation Center. Retrieved from 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

BibTeX

@misc{reference.wolfram_2025_deleteobject, author="Wolfram Research", title="{DeleteObject}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/DeleteObject.html}", note=[Accessed: 12-May-2025 ]}

@misc{reference.wolfram_2025_deleteobject, author="Wolfram Research", title="{DeleteObject}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/DeleteObject.html}", note=[Accessed: 12-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_deleteobject, organization={Wolfram Research}, title={DeleteObject}, year={2017}, url={https://reference.wolfram.com/language/ref/DeleteObject.html}, note=[Accessed: 12-May-2025 ]}

@online{reference.wolfram_2025_deleteobject, organization={Wolfram Research}, title={DeleteObject}, year={2017}, url={https://reference.wolfram.com/language/ref/DeleteObject.html}, note=[Accessed: 12-May-2025 ]}