curl --request DELETE \
--url https://api.scanova.io/folder/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.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://api.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://api.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://api.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://api.scanova.io/folder/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.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{
"message": "Folder and associated QR codes deleted."
}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.
curl --request DELETE \
--url https://api.scanova.io/folder/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.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://api.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://api.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://api.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://api.scanova.io/folder/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.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{
"message": "Folder and associated QR codes deleted."
}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
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: YOUR_API_KEY. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Path Parameters
Query Parameters
Unassign the folder's QR codes (move to Uncategorized) instead of leaving them as-is.
Permanently delete the folder's QR codes (owned by this account) along with the folder.
Response
Folder deleted. A JSON body is included only when move_to_uncategorized or delete_permanently is set.
Was this page helpful?