Manage
delete POST
Delete a file or symlink.
await ns.deleteAsync("/123456/static/old.js");ns.delete("/123456/static/old.js", (err, res) => {
if (res?.statusCode === 200) console.log("deleted");
});npx akamai-netstorage rm static/old.jsSignatures
deleteAsync(ns_path: string): Promise<DeleteResponse>
delete(ns_path: string, callback: (err: any, res?: http.IncomingMessage, body?: DeleteResponse) => void): void
Parameters
| Name | Type | Description |
|---|---|---|
ns_path | string | Full path of the file. |
Returns
DeleteResponse
parsed response body
On the wire
| HTTP method | POST |
| X-Akamai-ACS-Action | version=1&action=delete |
| Signed with | X-Akamai-ACS-Auth-Data and X-Akamai-ACS-Auth-Sign (HMAC-SHA256) |
| CLI | akamai-netstorage rm static/old.js |