---
title: "Delete a Deployment from inside the container"
method: DELETE
path: "/v1/self/stop/{request_id}/{access_point_id}"
tags: ["Deployments"]
---

# Delete a Deployment from inside the container

`DELETE /v1/self/stop/{request_id}/{access_point_id}`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/self/stop/{request_id}/{access_point_id}`
- Auth: none required

Delete a deployment from the inside of a container. You should use this URL inside your deployment. The URL is injected in your deployment and can be found via the environment variable ARBITRIUM_DELETE_URL.

## Path parameters

- `request_id` string, required
- `access_point_id` integer, required

## Query parameters

- `container_log_storage` string

## Headers

- `authorization` string, required

## Response `200`

Success

- Delete
  - `message` string, required: A message depending of the request termination
  - `deployment_summary` Status
    - `request_id` string, required: The Unique ID of the Deployment's request
    - `fqdn` string, required: The FQDN that allow to connect to your Deployment
    - `app_name` string, required: The name of the deployed App
    - `app_version` string, required: The version of the deployed App
    - `current_status` string, required: The current status of the Deployment
    - `running` boolean, required: True if the current Deployment is ready to be connected and running
    - `whitelisting_active` boolean, required: True if the current Deployment is ACL protected
    - `start_time` string, required: Timestamp of the Deployment when it is up and running
    - `removal_time` string: Timestamp of the end of the Deployment
    - `elapsed_time` integer, required: Time since the Deployment is up and running in seconds
    - `last_status` string: The last status of the Deployment
    - `error` boolean, required: True if there is an error with the Deployment
    - `error_detail` string: The error details of the Deployment
    - `ports` object
    - `public_ip` string, required: The public IP
    - `sessions` DeploymentSessionContext[]: List of Active Sessions if Deployment App is Session Based
      - `session_id` string, required: Unique UUID
      - `status` string, required: Current status of the session
      - `ready` boolean, required: If the session is linked to a Ready deployment
      - `linked` boolean, required: If the session is linked to a deployment
      - `kind` string, required: Type of session created
      - `user_count` integer, required: Count of user this session currently have
    - `location` DeploymentLocation
      - `city` string, required: City of the deployment
      - `country` string, required: Country of the deployment
      - `continent` string, required: Continent of the deployment
      - `administrative_division` string, required: Administrative division of the deployment
      - `timezone` string, required: Timezone of the deployment
      - `latitude` number, required: Latitude of the deployment
      - `longitude` number, required: Longitude of the deployment
    - `tags` string[]: List of tags associated with the deployment
    - `sockets` integer: The Capacity of the Deployment
    - `sockets_usage` integer: The Capacity Usage of the Deployment
    - `command` string: The command to use in the container, null mean it will take the default of the container
    - `arguments` string: The arguments to use in the container, null mean it will take the default of the container
    - `max_duration` integer, required: The deployment's maximum duration is the time, in minutes, that the deployment will remain active before automatically closing.

## Other responses

- `202`: Accepted
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
