> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://api.docs.modulards.com/modular-ds-public-api/updater/components/uninstall-a-component-from-websites/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.docs.modulards.com/_mcp/server. # Uninstall a component from websites POST https://api.modulards.com/api/public/v1/components/{component}/uninstall Content-Type: application/json Deletes one plugin or theme, files included, from the websites you list in `sites`. It runs at once, with no confirmation step. Only inactive items can be deleted: deactivate the item first with "Activate or deactivate a component on websites". It creates one site action per website that passes the checks. The work finishes later: see [Writes and asynchronous operations](https://api.docs.modulards.com/writes-and-asynchronous-operations). Follow the site actions with "List site actions". Websites that cannot be processed are reported in `meta.skipped`, each with a `reason_code` and a message, and do not fail the call. A website is skipped, with `UNSUPPORTED`, when the item is still active or cannot be deleted: WordPress itself, the Modular Connector plugin and the theme in use are never deleted. It is also skipped when it is not connected (`SITE_UNREACHABLE`), does not have the component, hides its update notice, or already has too many pending or running actions. **Body** - `sites` (array of integers, required): ids of the websites to act on, 1 to 50. **Errors** - **404**: the component is not installed on any of your websites. - **422**: `sites` is missing, empty, has more than 50 ids, or contains an id that matches no website. Reference: https://api.docs.modulards.com/modular-ds-public-api/updater/components/uninstall-a-component-from-websites ## Authentication - `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints. ## Request ### Path parameters - `component` (string, required) ### Body (application/json) This endpoint expects an object. - `sites` (list of double, optional) ## Response ### 202 202 Accepted - one uninstall launched, one website skipped - `data` (list of ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaDataItems, optional) - `jsonapi` (ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaJsonapi, optional) - `meta` (ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaMeta, optional) ## Types ### ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaDataItems - `attributes` (ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaDataItemsAttributes, optional) - `id` (string, optional) - `links` (ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaDataItemsLinks, optional) - `type` (string, optional) ### ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaJsonapi - `version` (string, optional) ### ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaMeta - `skipped` (list of ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaMetaSkippedItems, optional) ### ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaDataItemsAttributes - `completed_at` (any, optional, nullable) - `created_at` (string, optional) - `created_by` (double, optional) - `origin` (string, optional) - `site_id` (double, optional) - `started_at` (any, optional, nullable) - `status` (string, optional) - `type` (string, optional) - `updated_at` (string, optional) ### ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaDataItemsLinks - `self` (string, optional) ### ApiPublicV1ComponentsComponentUninstallPostResponsesContentApplicationJsonSchemaMetaSkippedItems - `message` (string, optional) — Human-readable explanation of the reason. - `reason_code` (string, optional) — Why the website was skipped, for example SITE_UNREACHABLE, UNSUPPORTED, NOT_FOUND, PERMISSION_DENIED, CONFLICT or ALREADY_APPLIED. - `site_action_id` (any, optional, nullable) — Always null: no site action was created for a skipped website. - `site_id` (integer, optional) — Id of the website that was skipped. - `site_name` (string, optional, nullable) — Name of the website that was skipped; null when you have no access to it. ## Examples ### 202 Accepted - one uninstall launched, one website skipped **Response** ```json { "data": [ { "attributes": { "completed_at": null, "created_at": "2026-09-21T09:00:00.000000Z", "created_by": 501, "origin": "agent", "site_id": 12, "started_at": null, "status": "pending", "type": "manager.delete", "updated_at": "2026-09-21T09:00:00.000000Z" }, "id": "5013", "links": { "self": "{{base_url}}/api/public/v1/site-actions/5013" }, "type": "site-actions" } ], "jsonapi": { "version": "1.1" }, "meta": { "skipped": [ { "message": "WooCommerce cannot be deleted on this website (incompatible version, the Modular Connector plugin, or the active theme).", "reason_code": "UNSUPPORTED", "site_action_id": null, "site_id": 13, "site_name": "Blog" } ] } } ``` **SDK Code** ```python 202 Accepted - one uninstall launched, one website skipped import requests url = "https://api.modulards.com/api/public/v1/components/component/uninstall" headers = {"Authorization": "Bearer "} response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript 202 Accepted - one uninstall launched, one website skipped const url = 'https://api.modulards.com/api/public/v1/components/component/uninstall'; const options = {method: 'POST', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 202 Accepted - one uninstall launched, one website skipped package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/components/component/uninstall" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 202 Accepted - one uninstall launched, one website skipped require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/components/component/uninstall") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 202 Accepted - one uninstall launched, one website skipped import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.modulards.com/api/public/v1/components/component/uninstall") .header("Authorization", "Bearer ") .asString(); ``` ```php 202 Accepted - one uninstall launched, one website skipped request('POST', 'https://api.modulards.com/api/public/v1/components/component/uninstall', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 202 Accepted - one uninstall launched, one website skipped using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/components/component/uninstall"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 202 Accepted - one uninstall launched, one website skipped import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/components/component/uninstall")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Uninstall a component from websites **Request** ```json { "sites": [ 12 ] } ``` **Response** ```json { "data": [ { "attributes": { "completed_at": null, "created_at": "2026-09-21T09:00:00.000000Z", "created_by": 501, "origin": "agent", "site_id": 12, "started_at": null, "status": "pending", "type": "manager.delete", "updated_at": "2026-09-21T09:00:00.000000Z" }, "id": "5013", "links": { "self": "{{base_url}}/api/public/v1/site-actions/5013" }, "type": "site-actions" } ], "jsonapi": { "version": "1.1" }, "meta": { "skipped": [ { "message": "WooCommerce cannot be deleted on this website (incompatible version, the Modular Connector plugin, or the active theme).", "reason_code": "UNSUPPORTED", "site_action_id": null, "site_id": 13, "site_name": "Blog" } ] } } ``` **SDK Code** ```python Uninstall a component from websites import requests url = "https://api.modulards.com/api/public/v1/components/component/uninstall" payload = { "sites": [12] } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Uninstall a component from websites const url = 'https://api.modulards.com/api/public/v1/components/component/uninstall'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"sites":[12]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Uninstall a component from websites package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/components/component/uninstall" payload := strings.NewReader("{\n \"sites\": [\n 12\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Uninstall a component from websites require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/components/component/uninstall") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"sites\": [\n 12\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Uninstall a component from websites import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.modulards.com/api/public/v1/components/component/uninstall") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"sites\": [\n 12\n ]\n}") .asString(); ``` ```php Uninstall a component from websites request('POST', 'https://api.modulards.com/api/public/v1/components/component/uninstall', [ 'body' => '{ "sites": [ 12 ] }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Uninstall a component from websites using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/components/component/uninstall"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"sites\": [\n 12\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Uninstall a component from websites import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["sites": [12]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/components/component/uninstall")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```