---
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

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
