Delete a product
curl --request DELETE \
--url https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"deleted": true,
"product_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}API reference
Delete a product
Permanently remove a synced product and its managed images from the catalog.
DELETE
https://api.virtual.fit
/
vfr
/
manage
/
sites
/
{site_id}
/
products
/
{product_id}
Delete a product
curl --request DELETE \
--url https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"deleted": true,
"product_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Keep the virtual.fit API key on your server.
Path Parameters
Custom JavaScript site ID from virtual.fit.
Stable, case-sensitive identity that remains unchanged when the product's title, URL, options, variants, price, or media change. URL-encode it in the request path.
Maximum string length:
255