Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
FileTools[Remove] - remove a file from the file system
Calling Sequence
Remove(file, file2, ...)
Parameters
file1, file2, ...
-
one or more filenames or descriptors
Description
The Remove(file1, file2, ...) command deletes files from the file system.
The Remove function does not return anything.
If file refers to an open file, it is automatically closed and then deleted.
Errors that occur while removing individual files are tagged, and Remove continues until it reaches the end of the list, then throws an error reporting all files that it was unable to remove.
Examples
The file "testfile" cannot be read because it has been removed.
Error, (in fopen) file or directory does not exist
See Also
file_types, FileTools, FileTools[Binary][Close], FileTools[Binary][Open], FileTools[Text][Close], FileTools[Text][Open], FileTools[Text][ReadLine], FileTools[Text][WriteLine], fremove, IO_errors
Download Help Document