For the complete documentation index, see llms.txt. This page is also available as Markdown.

DeleteDirectory

Task for deleting SMB directories.

Task version: 2.2.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

DirectoryPath : String

Full path to the directory (relative to the share) we want to delete. If the folder already doesn't exist, nothing happens.

Default: - Example: root\folder\newFolder

Name
Description

Server : String

SMB server address or hostname.

Default: - Example: 127.0.0.1

Share : String

SMB share name to connect to.

Default: - Example: testShare

Username : String

Username for SMB authentication.

This needs to be of format domain\username

Default: - Example: WORKGROUP\Administrator

🗝Password : String

Password for the SMB credentials.

Default: - Example: Password123

OperatingSystem : Os

Defines the operating system of the SMB server.

Options used to determine correct path separator to use.

Possible values:

  • Windows: Defines the operating system of the SMB server.

Options used to determine correct path separator to use.

  • Linux: Defines the operating system of the SMB server.

Options used to determine correct path separator to use.

Default: 2 Example: Linux

Name
Description

ThrowErrorOnFailure : Boolean

Whether to throw an error on failure.

Default: True Example: false

ErrorMessageOnFailure : String

Overrides the error message on failure.

Default: - Example: Custom error message

DeleteRecursively : Boolean

Whether to delete directories recursively.

Default: False Example: false

Task Result

Name
Description

Success : Boolean

Indicates if the task completed successfully. Example: true

FullUncPath : PathString

Full path of the deleted directory. Example: \host\share\dir\newDir

Error : Error

Error that occurred during task execution. Example: object { string Message, Exception AdditionalInfo }

Task Changelog

Changelog for Task Frends.Smb.DeleteDirectory.

[2.2.0] - 2026-06-26

Changed

  • Username parsing: now accepts a username without a domain instead of throwing an error.

  • Server connection: removed manual DNS resolve; connects using the raw server address string.

[2.1.0] - 2026-04-23

Fixed

  • Input parameters treated as normal string instead of PathString type.

[2.0.0] - 2026-04-08

Added

  • New connection parameters that defined what servers Operating System.

  • [Breaking Change] Introduce PathString type that will represent paths with OS specific separators.

[1.0.0] - 2025-11-14

Added

  • Initial implementation

Last updated

Was this helpful?