tcl.delete-file

Verb: Access/TCL, Releases: AP and R83

Deletes file from account.

Syntax

delete-file file.reference {(option} delete-file data file.reference{, file.reference} {(option}

Description

releases all frames used by the specified file to the overflow table, and removes the file.reference from the master dictionary of the current account.

Synonym-defining items ('q-pointers') may not be deleted with this command. The account must possess the actual 'd-pointer' to a file to be able to delete the file.

Options

u Unconditionally deletes the file, even if it is open at the time of the delete.

Example

delete-file temp

This deletes the dictionary and all data sections from the 'temp'
file.

delete-file data temp

This deletes the 'temp' data section from the 'temp'
dictionary, leaving the dictionary and any other data sections connected to the
'temp' dictionary intact.

delete-file customers,temp

This deletes the 'temp' data section from the 'customers'
dictionary.

See Also

Command Name Type Description
tcl.df Verb: Access Invokes 'delete-file' command.
tcl.create-file Verb: Access Creates a new file.
tcl.rename-file Verb: Access Changes filename and updates pointers.
files Definition Description of Pick file organization.
tcl.move-file Verb: Access Moves file.
TCL.DELETE Verb: Access Deletes item(s) from file.
tcl.delete-account Verb: Access Procedure to remove account.
basic.close Statement Closes file.
tcl.clear-file Verb: Access Clears dict or data section of specified file.
file.control.block Definition Description of file control block.
basic.begin.work Statement Starts a transaction

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.