---
title: "Delete a resource from a Copilot Space for a user"
method: DELETE
path: "/users/{username}/copilot-spaces/{space_number}/resources/{space_resource_id}"
tags: ["copilot-spaces"]
---

# Delete a resource from a Copilot Space for a user

`DELETE /users/{username}/copilot-spaces/{space_number}/resources/{space_resource_id}`

Deletes a resource from a specific Copilot Space owned by a user.
The authenticated user must have write permissions on the space.

OAuth app tokens and personal access tokens (classic) need the `write:user` scope to use this endpoint.

## Path parameters

- `username` string, required
- `space_number` integer, required
- `space_resource_id` integer, required

## Response `204`

Response

## Other responses

- `403` — Forbidden
- `404` — Resource not found

## Changes

> 62 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-27** (2022-11-28) `f3adc495577d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/rest/changes/users/:username/copilot-spaces/:space_number/resources/:space_resource_id/delete.md)

---

[API](https://skmtc.dev/github/apis/rest.md) · [All operations](https://skmtc.dev/github/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/rest/revisions/5bded2c77b93/schema)
