Skip to content

Remove Folder — Reference

Reference · Advanced · Server Connect

Remove a server folder and its contents.

Remove a server folder and its contents.

  • A Server Connect action and a dedicated test file/folder that the server process can access. Protect the endpoint before exposing private file operations.

Remove a server folder and its contents.

Use an application-relative path beginning with /. In a standard Node.js project, /public/uploads/example.txt is a server path while /uploads/example.txt is its public URL. PHP paths are relative to the application root determined by its runtime. Verify the active target with the file picker instead of copying a path between server models. Do not accept unrestricted user input as a filesystem path.

Setting Meaning
NameNames the operation’s result for later server steps when it returns one. See the result notes for this operation; not all file actions return the same type.
PathThe application-relative server path to the target folder or entry. Use the picker for the active target and verify the resolved location.
Output ResultIncludes a named returned result in action output when applicable. Default off. Check the operation’s actual return type; Download sends the file response instead.

Create a disposable test folder with one test file. Confirm the resolved target, run Remove Folder on that exact folder, then check that the folder is absent. Use only test data while verifying this action.

Removal is recursive and does not go through a desktop Trash. Node.js returns the removed application path and can tolerate an absent target; PHP returns true and errors if the folder is absent. Never use an application root or an unchecked user-supplied path.

A returned path or URL is not an access-control decision. Keep private file reads and writes behind server-side identity and ownership checks, and update any database metadata only after the intended file operation succeeds.

You can configure the path and verify the returned result or file effect without confusing it with a page URL or database update.