21.3.25 delete_files

Description

This Tcl command deletes files in your Libero SoC project.

delete_files -file {value} [-from_disk {TRUE | FALSE}]

Arguments

ParameterTypeDescription
filestringSpecifies the file you wish to delete from the project. This parameter is required for this Tcl command. It does not delete the file from the disk.
from_diskbooleanSpecifies if the file will be deleted from disk or not. The default value is 'False'. This parameter is optional.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneParameter 'file' has illegal value.
NoneRequired parameter 'file' is missing.
NoneParameter 'param_name' is not defined. Valid command formatting is 'delete_files [-file "file"]+ [-from_disk "TRUE | FALSE"]'.

Supported Families

Supported Families
PolarFire®
PolarFire SoC
RTG4
SmartFusion® 2
IGLOO® 2

Example

Delete the files file1.vhd and file2.vhd from the project.

delete_files -file {./project/hdl/file1.vhd} -from_disk {TRUE}