Delete Company
curl --request DELETE \
--url https://api-staging.luladelivery.store/stores/company/{company_id}import requests
url = "https://api-staging.luladelivery.store/stores/company/{company_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api-staging.luladelivery.store/stores/company/{company_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-staging.luladelivery.store/stores/company/{company_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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-staging.luladelivery.store/stores/company/{company_id}"
req, _ := http.NewRequest("DELETE", url, nil)
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-staging.luladelivery.store/stores/company/{company_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.luladelivery.store/stores/company/{company_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": true
}Companies
Delete Company
This endpoint permanently deletes a company from the system. This is a destructive operation that will remove the company and potentially affect all associated stores, orders, and data. Use with extreme caution.
DELETE
/
stores
/
company
/
{company_id}
Delete Company
curl --request DELETE \
--url https://api-staging.luladelivery.store/stores/company/{company_id}import requests
url = "https://api-staging.luladelivery.store/stores/company/{company_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api-staging.luladelivery.store/stores/company/{company_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-staging.luladelivery.store/stores/company/{company_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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-staging.luladelivery.store/stores/company/{company_id}"
req, _ := http.NewRequest("DELETE", url, nil)
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-staging.luladelivery.store/stores/company/{company_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.luladelivery.store/stores/company/{company_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": true
}This endpoint permanently removes a company from the system. This is an irreversible operation that will delete the company record and may cascade to associated entities like stores, orders, and customer data.
Destructive Operation: This action cannot be undone. All company data, associated stores, and related information will be permanently deleted from the system.
Path Parameters
string
required
The unique identifier of the company to delete
Prerequisites
Before deleting a company, ensure:Pre-deletion Checklist
Pre-deletion Checklist
action
Export any important company data, reports, or configurations that you may need later
action
Handle all associated stores - either delete them separately or transfer them to another company
action
Ensure all pending orders are completed or properly handled
action
Complete any outstanding payments, refunds, or billing processes
action
Notify customers about service discontinuation if applicable
action
Disconnect any third-party integrations and clean up API connections
Deletion Impact
What Gets Deleted
What Gets Deleted
deleted
Complete company profile including business information and settings
deleted
All associated address records
affected
All stores under this company may be affected (depending on system configuration)
affected
Admin and user accounts associated with this company will lose access
affected
Historical order data may be affected (check system retention policies)
affected
HubSpot connections and other CRM integrations will be severed
Response
boolean
Indicates whether the deletion operation was successful
Response Example
{
"success": true
}
Error Scenarios
Common Deletion Errors
Common Deletion Errors
error
The specified company_id does not exist in the systemStatus Code: 404
error
Company has active stores that must be handled firstStatus Code: 409Solution: Delete or transfer all stores before deleting the company
error
Company has pending or processing ordersStatus Code: 409Solution: Wait for orders to complete or cancel them manually
error
User doesn’t have permission to delete companiesStatus Code: 403Solution: Ensure you have admin-level permissions
Alternative Approaches
Alternatives to Deletion
Alternatives to Deletion
alternative
Set the company’s
active status to 0 instead of deletingBenefits: Preserves data while preventing new operationsalternative
Change company status to “Off Boarding” or “Churned”Benefits: Maintains audit trail and historical data
alternative
Export company data before deletion for archival purposesBenefits: Retains important business information for compliance
Best Practice: Consider using the Update Company endpoint to set
active: 0 or change status to “Churned” instead of permanent deletion. This preserves valuable business data while effectively removing the company from active operations.Compliance: Ensure deletion complies with data retention policies, GDPR requirements, and any regulatory obligations in your jurisdiction.

