Delete Folder
curl --request DELETE \
--url https://management.scanova.io/folder/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://management.scanova.io/folder/{id}/"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://management.scanova.io/folder/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://management.scanova.io/folder/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://management.scanova.io/folder/{id}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://management.scanova.io/folder/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://management.scanova.io/folder/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "Invalid token."
}{
"detail": "Not found."
}Folder Management
Delete Folder
Delete a folder, optionally moving QR codes to Uncategorized or permanently deleting them. Authentication required — include your API key in the Authorization header.
DELETE
/
folder
/
{id}
/
Delete Folder
curl --request DELETE \
--url https://management.scanova.io/folder/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://management.scanova.io/folder/{id}/"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://management.scanova.io/folder/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://management.scanova.io/folder/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://management.scanova.io/folder/{id}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://management.scanova.io/folder/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://management.scanova.io/folder/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "Invalid token."
}{
"detail": "Not found."
}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Folder ID. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
move_to_uncategorized | boolean | Yes | If true, moves QR codes to Uncategorized before deleting the folder. |
delete_permanently | boolean | Yes | If true, permanently deletes QR codes in the folder (no trash). |
Behavior Matrix
| move_to_uncategorized | delete_permanently | Result |
|---|---|---|
false | true | Permanently delete QR codes and the folder. |
true | false | Move QR codes to Uncategorized, then delete the folder. |
false | false | Delete the folder only. |
Example Request
DELETE /folder/7/?move_to_uncategorized=true&delete_permanently=false
Example Response
✅ 204 No Content
Folder deleted successfully.Authorizations
API key authentication. Enter your API key directly in the Authorization header.
Path Parameters
Folder ID
Query Parameters
Move QR codes to Uncategorized before deleting the folder
Permanently delete QR codes in the folder
Response
Folder deleted successfully
Was this page helpful?
⌘I