-- DeleteDoc.tioga
-- last edited by: L. Stewart, December 12, 1983 5:21 pm
name Delete:
syntax
Delete {pattern}*
description
Delete deletes FS files. It does not ask for confirmation. Both local and remote patterns can be used. If there is no version number, the default is !L.
Delete does an FS.EnumerateForNames and deletes the files it finds. The pattern '* does not match the characters '/ or '>, but the pattern "**" does. This means that unless you use "**", delete will not delete any files in subdirectories.
Here is the discussion of Delete from FS.mesa.
(To be updated from some version of FSDoc.tioga)
A missing verion part defaults to !L. If "name" is an GName then the file is deleted directly from the remote server (and removed from the cache). An FS.Error[lock, $lockConflict] occurs if the specified file is currently open. If "name" is an LName that is attached to some GName, then just the LName is deleted; the global file is not deleted. Note that deleting the !H verison may cause a previous verison to become the new !H version, and therefore cause the keep on the previous version to become the controlling keep for the set of versions.
examples
% Delete /Ivy/Stewart/Temp/W1aw.txt!2
deleting /Ivy/Stewart/Temp/W1aw.txt!2

% Delete ///temp/*
deleting []<>temp>Binder.Log!1
deleting []<>temp>commands.txt!1
deleting []<>temp>foo.cm!1

% Delete ///temp/*
deleting []<>temp>commands.txt!2

%
warnings
Delete does not ask for confirmation.
stop/undo
Click the STOP! button.
implementation
FSFileCommandsImpl.mesa in CommandTool.df
contact
L. C. Stewart <Stewart.pa>
keyword hints
help button info man
keywords
to be supplied by the Index Czar