SQL Eval Function File_Delete

File_Delete deletes the specified file.

File_Delete 
	@path NVARCHAR (MAX)

Parameters

  • path: The name of the file to be deleted. Wildcard characters are not supported.

Example

EXEC File_Delete @path = 'C:\Temp\MyTest.txt'

Contents