Manage
rmdir POST
Remove an empty directory.
await ns.rmdirAsync("/123456/releases/old");ns.rmdir("/123456/releases/old", (err, res) => console.log(res?.statusCode));npx akamai-netstorage rmdir releases/oldSignatures
rmdirAsync(ns_path: string): Promise<RmdirResponse>
rmdir(ns_path: string, callback: (err: any, res?: http.IncomingMessage, body?: RmdirResponse) => void): void
Parameters
| Name | Type | Description |
|---|---|---|
ns_path | string | Full path of the directory. |
Returns
RmdirResponse
parsed response body
On the wire
| HTTP method | POST |
| X-Akamai-ACS-Action | version=1&action=rmdir |
| Signed with | X-Akamai-ACS-Auth-Data and X-Akamai-ACS-Auth-Sign (HMAC-SHA256) |
| CLI | akamai-netstorage rmdir releases/old |
Build and sign this request in the playground →
Notes
- The directory must be empty; use quickDelete for a whole tree.