removefile

Remove file from target computer

Description

example

removefile(filesys_object,file_name) removes a file from the target computer file system.

You cannot recover this file once you remove it.

Note: The SimulinkRealTime.fileSystem object will be removed in a future release. See the release note for file system commands to use instead. These commands use the SimulinkRealTime.openFTP function and the functions for the MATLAB ftp object.

Examples

collapse all

Remove data2.dat from the file system.

tg = slrt;
filesys_object = SimulinkRealTime.fileSystem(tg);
removefile(filesys_object,'data2.dat')

Input Arguments

collapse all

File system object created by using the SimulinkRealTime.fileSystem creation function.

The file system object represents the target computer file system. You work with the target computer file system from the development computer by using file system methods.

Example: fsys

Data Types: struct

The name of the file can be a name relative to the current folder or a fully qualified path. Enclose the file name in single quotation marks.

Example: 'data.dat'

Introduced in R2014a