Stata 11 help for erase

help erase, help rm -------------------------------------------------------------------------------

Title

[D] erase -- Erase a disk file

Syntax

{erase|rm} ["]filename["]

Note: Double quotes must be used to enclose filename if the name contains spaces.

Description

The erase command erases files stored on disk. rm is a synonym for erase for the convenience of Unix users.

Stata for Mac users: erase is permanent; the file is not moved to the Trash but is immediately removed from the disk.

Stata for Windows users: erase is permanent; the file is not moved to the Recycle Bin but is immediately removed from the disk.

Examples

Windows . erase oldfile.dta . erase ..\mydata\oldfile.dta

Unix . rm oldfile.dta . rm ../mydata/oldfile.dta

Mac . erase oldfile.dta . erase "..:My Data:oldfile.dta"

Also see

Manual: [D] erase

Help: [D] cd, [D] copy, [D] dir, [D] mkdir, [D] rmdir, [D] shell, [D] type


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index