English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Erlang File delete Method

Files in Erlang

This method is used to delete existing files.

Syntax

delete(filename)

Parameter

  • filename −File name to be deleted and destination.

Return Value

None

-module(helloworld). 
-export([start/0]). 
start() -> 
   file:delete("Duplicate.txt").

If the fileDuplicate.txtIt exists, it will be deleted.

Files in Erlang