---
title: "DELETE /portfolio/{portfolioId}/views/{viewId}"
method: DELETE
path: "/portfolio/{portfolioId}/views/{viewId}"
tags: ["Views"]
---

# DELETE /portfolio/{portfolioId}/views/{viewId}

`DELETE /portfolio/{portfolioId}/views/{viewId}`

## Request

- Base URL: `https://api.craft.io`
- URL: `https://api.craft.io/portfolio/{portfolioId}/views/{viewId}`
- Auth: API key in header `x-api-key`

Delete a portfolio view.

## Path parameters

- `portfolioId` string, required
- `viewId` string, required

## Response `200`

The view is deleted

- object
  - `viewId` string, required
  - `deleted` boolean, required

## Other responses

- `404`: No view found

## Changes

- **2026-10-01** `6009bb084cb5`: 1 info
  - added the optional property `error` to the response with the `404` status
- **2026-08-19** `df0d980eb1e3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/craft/apis/craft-io-public-api/changes/portfolio/:portfolioId/views/:viewId/delete.md)

---

[API](https://skmtc.dev/craft/apis/craft-io-public-api.md) - [All operations](https://skmtc.dev/craft/apis/craft-io-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/craft/apis/craft-io-public-api/revisions/2972a1b05ab1?raw)
