---
title: "Unfavorite a repository for the current user"
method: DELETE
path: "/api/v1/preferences/repos/favorites/{repoId}"
tags: ["Preferences"]
---

# Unfavorite a repository for the current user

`DELETE /api/v1/preferences/repos/favorites/{repoId}`

## Path parameters

- `repoId` string, required

## Response `200`

Pinned and recent repositories after mutation

- object
  - `pinned` object[], required
    - `repo_id` string, required
    - `full_name` string, required
    - `runners_enabled` boolean, required
    - `trails_enabled` boolean, required
    - `last_used_at` string, nullable — Timestamp from this user's retained recent list, including unpin/import recency. Null when unavailable; absent on older servers.
    - `provider` 'github' | 'entire'
  - `recent` object[], required
    - `repo_id` string, required
    - `full_name` string, required
    - `runners_enabled` boolean, required
    - `trails_enabled` boolean, required
    - `last_used_at` string, nullable — Timestamp from this user's retained recent list, including unpin/import recency. Null when unavailable; absent on older servers.
    - `provider` 'github' | 'entire'

## Other responses

- `400` — Invalid path parameter
- `401` — Not authenticated

## Changes

- **2026-09-24** `0eb4157af08b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/entire/apis/entire-api/changes/api/v1/preferences/repos/favorites/:repoId/delete.md)

---

[API](https://skmtc.dev/entire/apis/entire-api.md) · [All operations](https://skmtc.dev/entire/apis/entire-api/llms.txt) · [OpenAPI document](https://skmtc.dev/entire/apis/entire-api/revisions/d69a682d6e44?raw)
