Connect EarthCompliance API
Portfolios

Delete a portfolio snapshot

DELETE/portfolios/{identifier}

Deletes one snapshot of a portfolio. It works on any portfolio in your organization, including portfolios created in the Connect Earth app. When you delete the last listed snapshot, the portfolio is deleted too. A portfolio with no listed snapshots, for example one whose snapshots are all older than about five years, is deleted entirely by a DELETE, whatever snapshot_at you send. If the snapshot is not listed, nothing is deleted and the message says so. metadata.message is one of Fund snapshot deleted successfully, Fund deleted successfully with all snapshots, Fund deleted successfully or Fund snapshot not found.

Authorization

apiKey
x-api-key<token>

Your Connect Earth API key.

In: header

Path Parameters

identifier*string

The portfolio identifier returned by POST /portfolios or GET /portfolios.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://eco.datia.app/portfolios/datia-portfolio:12345_pension-fund-a" \  -H "x-api-key: $CE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "snapshot_at": "2026-06-30"  }'
{  "identifier": "datia-portfolio:12345_pension-fund-a",  "metadata": {    "message": "Fund snapshot deleted successfully"  }}