Delete an extension
DELETE/contributors/ {contributorId}/ extensions/ {extensionId}/
v2
DELETE
extension-delete-extension
This action deletes all ExtensionInstances and afterwards the Extension itself.
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X DELETE \
-d '{"reason":"The deprecation phase of the extension has ended. The successor will now be the only usable version of this extension."}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/contributors/string/extensions/f0f86186-0a5a-45b2-aa33-502777496347
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.marketplace.extensionDeleteExtension({
"contributorId": "string",
"extensionId": "f0f86186-0a5a-45b2-aa33-502777496347",
"data": {
"reason": "The deprecation phase of the extension has ended. The successor will now be the only usable version of this extension."
}
});
assertStatus(response, 204);
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ExtensionDeleteExtension\ExtensionDeleteExtensionRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ExtensionDeleteExtension\ExtensionDeleteExtensionRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// ExtensionDeleteExtensionRequestBody to learn how to construct a valid instance
$body = new ExtensionDeleteExtensionRequestBody(/* TODO: ... */);
$request = (new ExtensionDeleteExtensionRequest(
contributorId: "string",
extensionId: "f0f86186-0a5a-45b2-aa33-502777496347",
body: $body
));
$response = $client->marketplace()->extensionDeleteExtension($request);
var_dump($response->getBody();