Previous Page | Next Page

The DOCUMENT Procedure

DELETE Statement


Deletes entries from the current file location.
Restriction: The root file location cannot be deleted or moved.
Caution: The DELETE statement affects all levels of a file location below the specified path.

DELETE path<(where-expression)> <, path-2<(where-expression-2)>>
<, ...path-n<(where-expression-n)>> </ LEVELS= ALL | value>;


Required Arguments

path

specifies the location of one or more links, output objects, or file locations. For example, the following DELETE statement removes the ClassLevels and Nobs entries from the current directory:

delete classlevels, nobs; 
run; 
Requirement: Separate multiple paths with commas.
Tip: You can use the symbol '^' to represent the current path and the symbol '^^' to represent the parent path.

Options

LEVELS= ALL | value

specifies the level of the path that you want to delete.

ALL

specifies all levels of the path.

value

specifies the numeric value of the path level.

Default: ALL
Restriction: The LEVELS= option is valid only when you specify a directory.
where-expression

selects, for deletion, entries in an ODS document that meet a particular condition.

See also: Using WHERE Expressions with the DOCUMENT Procedure

Previous Page | Next Page | Top of Page