---
title: "Revoke Assignment Share"
method: DELETE
path: "/teacher/assignments/{assignment_id}/share"
tags: ["teacher_assignments"]
---

# Revoke Assignment Share

`DELETE /teacher/assignments/{assignment_id}/share`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher/assignments/{assignment_id}/share`
- Auth: OAuth 2 (password, token URL `api/login`)

Stop every copy link of this devoir (EXC-1099). Same access rule as
creating one (POST /share): the devoir's owner, the teacher of its class
for a devoir with no `teacher_id`, or an admin; anyone else gets 404.
Idempotent: revoking a devoir with no live link succeeds too. No screen
calls it yet.

## Path parameters

- `assignment_id` string, required

## Response `200`

Successful Response

- RoutersExerciseAssignmentsBasicResponse
  - `status` string, required
  - `message` string, required
  - `assignment_id` string, nullable

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-10-14** `1160feeb2038`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/assignments/:assignment_id/share/delete.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
