> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vmarea.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List recently deleted virtual machines

> VMs that were deleted and can still be restored, with the date the restore window closes and the price to restore each one. Requires the `vms:read` scope.



## OpenAPI

````yaml https://api.vmarea.com/api/public/v1/openapi.json get /api/public/v1/vms/recently-deleted
openapi: 3.1.0
info:
  title: VMArea Public API
  version: 1.0.0
  description: >-
    The VMArea Public API lets you provision and manage VMs, firewalls, SSH
    keys, backups, and webhooks programmatically. Authenticate every request
    with an API token (`x-api-key` header). API access is in early access:
    tokens are not yet self-service in every account; contact hello@vmarea.com
    to request access. Tokens carry coarse scopes (e.g. `vms:write`); endpoints
    reject calls that lack the scope they require.
  contact:
    name: VMArea Support
    url: https://vmarea.com/support
servers:
  - url: https://api.vmarea.com
    description: Production
security:
  - ApiKey: []
paths:
  /api/public/v1/vms/recently-deleted:
    get:
      tags:
        - VMs
      summary: List recently deleted virtual machines
      description: >-
        VMs that were deleted and can still be restored, with the date the
        restore window closes and the price to restore each one. Requires the
        `vms:read` scope.
      operationId: listRecentlyDeletedVms
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        hostname:
                          type: string
                        deletedAt:
                          type: string
                          format: date-time
                        reason:
                          type: string
                          nullable: true
                        restorableUntil:
                          type: string
                          format: date-time
                        restorePrice:
                          type: object
                          properties:
                            amount:
                              type: string
                            currency:
                              type: string
                          required:
                            - amount
                            - currency
                          additionalProperties: false
                          nullable: true
                      required:
                        - id
                        - name
                        - hostname
                        - deletedAt
                        - reason
                        - restorableUntil
                        - restorePrice
                      additionalProperties: false
                required:
                  - success
                  - data
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                  data:
                    type: object
                    additionalProperties: {}
                required:
                  - success
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                  data:
                    type: object
                    additionalProperties: {}
                required:
                  - success
                  - error
                additionalProperties: false
      security:
        - ApiKey: []
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header
      description: >-
        Long-lived API token (early access; contact hello@vmarea.com). Tokens
        are scope-restricted; this spec lists the scope each endpoint requires.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.