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

# Delete a plant



## OpenAPI

````yaml /mintlify-demo/v2.0/api-reference/openapi.yaml delete /plants/{id}
openapi: 3.0.3
info:
  title: Plant Care API
  version: 2.0.0
  description: >-
    A simple API for managing houseplants. Version 2.0 adds single-plant
    retrieval, watering schedule updates, and last-watered tracking.
servers:
  - url: http://localhost:3000/v2
security: []
paths:
  /plants/{id}:
    delete:
      summary: Delete a plant
      operationId: deletePlant
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the plant to delete
          schema:
            type: integer
      responses:
        '204':
          description: Plant deleted
        '404':
          description: Plant not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Plant not found

````