User's Reference > General > TCL and General User Commands > Command Reference > D > DELETE

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

DELETE Command (TCL) (m604806+delete.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

DELETE

Deletes one or more items from a file. The EDELETE command, which performs a similar function, but has English-like syntax, is described in the English Reference.

Command Class

Proc.

Syntax

DELETE file-specifier item-list

Syntax Elements

file-specifier is the file containing the items to be deleted.

item-list is one or more item-ids separated by spaces, a list produced by a list generating command, or an asterisk (*) to specify all items.

Prompts

If you do not specify a file specifier, the command displays.

File to delete items from:

Enter the name of the file at this prompt, then an item-list. If you do not specify an item-list, the command displays:

Item to delete?

Enter the item-id or an asterisk. If you enter an item-id, the command redisplays the prompt. This continues until you press return only.

Restrictions

You cannot delete items from an encrypted file unless your security profile gives you access to the encryption key.

Comments

The DELETE command deletes items in the specified file. It does not delete the file. To delete a file, use the DELETE-FILE command.

The DELETE command cannot delete index definition items or binary items such as cataloged DataBasic programs. To delete these types of item, use EDELETE.

Example 1

:DELETE OLD-TEST 1
'1' deleted.

Example 2

:DELETE OLD-TEST,TEST1 
Item to delete ? AA 
'AA' deleted.
Item to delete ? RETURN

RealityV15.1 (MoTW) Revision 7Comment on this topic