Theme resources and files
Deletes a theme resource
Deletes one theme file, identified by its key, as the theme CLI does when a local file is removed. Send the base_sha from your last pull to guard against overwriting newer server changes (409 when stale). The member site manifest members_sites.json cannot be deleted this way. Requires a company admin token with the application_themes update permission.
DELETE
/
api
/
application_themes
/
{application_theme_id}
/
resources
Deletes a theme resource
curl --request DELETE \
--url https://api.fluid.app/api/application_themes/{application_theme_id}/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"application_theme_resource": {
"key": "product/paper_product_page/index.liquid"
},
"base_sha": "9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47"
}
'import requests
url = "https://api.fluid.app/api/application_themes/{application_theme_id}/resources"
payload = {
"application_theme_resource": { "key": "product/paper_product_page/index.liquid" },
"base_sha": "9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
application_theme_resource: {key: 'product/paper_product_page/index.liquid'},
base_sha: '9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47'
})
};
fetch('https://api.fluid.app/api/application_themes/{application_theme_id}/resources', 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.fluid.app/api/application_themes/{application_theme_id}/resources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'application_theme_resource' => [
'key' => 'product/paper_product_page/index.liquid'
],
'base_sha' => '9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/application_themes/{application_theme_id}/resources"
payload := strings.NewReader("{\n \"application_theme_resource\": {\n \"key\": \"product/paper_product_page/index.liquid\"\n },\n \"base_sha\": \"9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.fluid.app/api/application_themes/{application_theme_id}/resources")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"application_theme_resource\": {\n \"key\": \"product/paper_product_page/index.liquid\"\n },\n \"base_sha\": \"9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/application_themes/{application_theme_id}/resources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"application_theme_resource\": {\n \"key\": \"product/paper_product_page/index.liquid\"\n },\n \"base_sha\": \"9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47\"\n}"
response = http.request(request)
puts response.read_body{
"application_theme_resource": {
"checksum": "a1c9e8f7d6b5a4c3e2f1d0b9a8c7e6f5d4c3b2a1f0e9d8c7b6a5f4e3d2c1b0a9",
"content": null,
"key": "product/paper_product_page/index.liquid",
"resource_id": 48213,
"resource_type": "ApplicationThemeTemplate",
"url": null
},
"content_version_sha": "e71d04a9c35b28f6a0d9173c4be58f2a61c0d93b",
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-22T15:04:12Z"
}
}{
"message": "<string>"
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": {},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"remote_sha": "<string>"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer token authentication
Path Parameters
Response
Success
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Server's fresh content_version_sha after the delete. New CLIs thread this forward as the next call's base_sha; old CLIs ignore the field. Present only when the theme has a valid content_version_sha (i.e. always on servers running the merge-aware push guard).
⌘I
Deletes a theme resource
curl --request DELETE \
--url https://api.fluid.app/api/application_themes/{application_theme_id}/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"application_theme_resource": {
"key": "product/paper_product_page/index.liquid"
},
"base_sha": "9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47"
}
'import requests
url = "https://api.fluid.app/api/application_themes/{application_theme_id}/resources"
payload = {
"application_theme_resource": { "key": "product/paper_product_page/index.liquid" },
"base_sha": "9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
application_theme_resource: {key: 'product/paper_product_page/index.liquid'},
base_sha: '9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47'
})
};
fetch('https://api.fluid.app/api/application_themes/{application_theme_id}/resources', 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.fluid.app/api/application_themes/{application_theme_id}/resources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'application_theme_resource' => [
'key' => 'product/paper_product_page/index.liquid'
],
'base_sha' => '9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/application_themes/{application_theme_id}/resources"
payload := strings.NewReader("{\n \"application_theme_resource\": {\n \"key\": \"product/paper_product_page/index.liquid\"\n },\n \"base_sha\": \"9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.fluid.app/api/application_themes/{application_theme_id}/resources")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"application_theme_resource\": {\n \"key\": \"product/paper_product_page/index.liquid\"\n },\n \"base_sha\": \"9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/application_themes/{application_theme_id}/resources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"application_theme_resource\": {\n \"key\": \"product/paper_product_page/index.liquid\"\n },\n \"base_sha\": \"9c3e1b7a42f06d58e2a91c4b7d03f6e85a12bc47\"\n}"
response = http.request(request)
puts response.read_body{
"application_theme_resource": {
"checksum": "a1c9e8f7d6b5a4c3e2f1d0b9a8c7e6f5d4c3b2a1f0e9d8c7b6a5f4e3d2c1b0a9",
"content": null,
"key": "product/paper_product_page/index.liquid",
"resource_id": 48213,
"resource_type": "ApplicationThemeTemplate",
"url": null
},
"content_version_sha": "e71d04a9c35b28f6a0d9173c4be58f2a61c0d93b",
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-22T15:04:12Z"
}
}{
"message": "<string>"
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": {},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"remote_sha": "<string>"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}