Macro Language Reference > Macros > Application > tkf
  
tkf
Description
Deletes a document from disk. Deleting a document from disk whilst still inside PTC ALD can be useful if you have written a script that, for instance, needs to write temporary files to disk; or, more simply, if you've made a mistake when saving a document and just want to get rid of it.
* 
A backup file is not kept and no warning is given -- only use tkf if you are absolutely sure about carrying out the delete operation.
 
This macro is an alias of the kill macro.
 
Example 18. Get a list of existing .bak files
The macro shown below will construct a list of files with the extension .bak that exist in the current directory and display it in the Delete Document(s) / File(s) dialogue box. The name and filesize of the files will be shown:
tkf "**.bak
You can then use the dialogue box to make a selection of the files you wish to delete.
Syntax
tkf file:s?
tkf
[no parameter]
Invoke the Delete Document(s) / File(s) dialog box.
file
The name of the file you want to delete. If the file parameter contains wildcard characters a list of matching files will appear in a menu, from which you can make a multiple selection. The wildcard can take one of three forms:
*.3d
Display file names only
**.3d
Display file names + file size
***.3d
Display fle names + file size + number of pages