Erlang – delete

Erlang delete

In this guide, we will discuss Erlang delete. This method is used to delete an existing file.

Syntax

delete(filename)

Parameters

  • filename − The name and destination of the file which needs to be deleted.

Return Value

None

For example

-module(helloworld). 
-export([start/0]). 

start() -> 
   file:delete("Duplicate.txt").

Output

If the file Duplicate.txt existed, it will be deleted.

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply