text: try \nif DeleteFile('C:&#92;Documents and Settings&#92; Name&#92;\nDescktop&#92; filetodelete.txt') then showMessage('File Deleted') else \nShowMessage('File Not Deleted');\nexcept\non E: exception do\nShowMessage('unknowen error');\nend;\nend;\nhope that will help