English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/storage/folder/{folderId}Delete a storage folder. The files in it are kept and moved out of the folder, with the same URLs. To delete the files too, use Remove Files (Mass) first.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizstorage:write| Parameter | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | ID of the folder, the _id from Get Folder. |
curl -X DELETE "https://api.repliz.com/public/storage/folder/6a4c3b580afd72bb342c3886" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const response = await axios.delete('https://api.repliz.com/public/storage/folder/6a4c3b580afd72bb342c3886', {
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch('https://api.repliz.com/public/storage/folder/6a4c3b580afd72bb342c3886', {
method: 'DELETE',
headers: {
Authorization: `Basic ${credentials}`,
},
});
console.log(response.status);// No content returned on success{
"code": 404,
"message": "folder not found"
}{
"code": 401,
"message": "unauthorized"
}