Deleting Files
Use the
delete
command to delete files in NVS. Table 36 on page 283 shows the types of
files you can delete in different locations.
delete
•
Use to delete files in NVS.
•
To delete a file in user space, specify the incoming or outgoing directory on the FTP
server. You can specify the name of a subdirectory in the incoming or outgoing directory.
•
You can include an asterisk (*) as a wildcard at any position in a specified filename.
The asterisk substitutes for zero or more characters in the name. You cannot use an
asterisk in a directory or subdirectory name.
•
You cannot delete reboot.hty or system.log files when you use a wildcard.
•
When you do not use a wildcard, the CLI deletes the file immediately without prompting
you for confirmation. When you use a wildcard, the CLI prompts you for confirmation
unless you also specify the
force
keyword; in that case the deletion takes place without
confirmation.
•
The
force
keyword causes the immediate deletion of the directory or file even when it
is not empty. However, if a file in the specified directory, or a specified file, is marked
by the file system as in use because it is required for the current operation or
configuration, the
force
keyword cannot force the deletion.
•
The
force
keyword is ignored when you attempt to delete any .dmp or .tsa file (unless
the deletion is issued from a .mac or .scr file); this means that the CLI always prompts
for confirmation for these file types.
•
Examples
host1#
delete test-2.txt
host1#
host1#
del test*.txt
Delete disk0:test-1.txt? [confirm] -> press n
disk0:test-1.txt: not deleted (per user request)
Delete disk0:test-2.txt? [confirm] -> press y
disk0:test-2.dmp: Deleted
Deleted 1 file, matched 2 files
host1#
del test*.txt force
disk0:test-1.txt: deleted
disk0:test-2.txt: deleted
Deleted 2 files, matched 2 files
host1#
del *.dmp force
WARNING: The force option is ignored for this file type.
Delete disk0:sample-1.dmp? [confirm] -> press n
disk0:sample-1.dmp: not deleted (per user request)
Delete disk0:sample-2.dmp? [confirm] -> press y
disk0:sample-2.dmp: Deleted
Deleted 1 file, matched 2 files
host1#
delete /outgoing/test.scr
•
There is no
no
version.
Copyright © 2010, Juniper Networks, Inc.
282
JunosE 11.3.x System Basics Configuration Guide
Summary of Contents for JUNOSE 11.3
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Page 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Page 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Page 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Page 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Page 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Page 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Page 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Page 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Page 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Page 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Page 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...