SFTP Client v1.4.1 SFTPClient.Operations.DeleteFile View Source

A module containing operations to delete a file from the remote server.

Link to this section Summary

Functions

Deletes the file specified by path.

Deletes the file specified by path. Raises when the operation fails.

Link to this section Functions

Link to this function

delete_file(conn, path)

View Source
delete_file(SFTPClient.Conn.t(), Path.t()) :: :ok | {:error, SFTPClient.error()}

Deletes the file specified by path.

Link to this function

delete_file!(conn, path)

View Source
delete_file!(SFTPClient.Conn.t(), Path.t()) :: :ok | no_return()

Deletes the file specified by path. Raises when the operation fails.