Main Content

deleteFile

Delete file on SoC board

    Description

    example

    deleteFile(p, filename) deletes the file specified by the input filename on the SoC board.

    Examples

    collapse all

    Delete a file from a specified SoC board.

    Create a Xilinx® processor hardware object and connect to the processor on-board the Xilinx SoC board.​

    p = xilinxsoc('192.168.1.101', 'root', 'root');

    Use the deleteFile function to delete a file located in your home directory on the SoC board, specified with the file name exampleFile.txt.

    deleteFile(p, "exampleFile.txt")

    The file exampleFile.txt is now deleted from your home directory on the connected SoC board.

    Input Arguments

    collapse all

    Hardware processor object that represents the connection from MATLAB® to the processor on a specific SoC hardware board, specified as a xilinxsoc object or intelsoc object.

    Path and name of file on the SoC board that you want to delete. You can use either the absolute path or the relative path from the your home directory.

    Example: "exampleFile.txt"

    Example: "/home/user/exampleFile.txt"

    Version History

    Introduced in R2022a

    See Also

    Objects

    Functions