---
title: "DELETE /v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}"
method: DELETE
path: "/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}"
tags: ["courses"]
---

# DELETE /v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}

`DELETE /v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}`

## Request

- Base URL: `https://classroom.googleapis.com`
- URL: `https://classroom.googleapis.com/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/classroom.addons.teacher`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/classroom.addons.teacher`

Deletes an add-on attachment. Requires the add-on to have been the original creator of the attachment. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.

## Path parameters

- `courseId` string, required
- `itemId` string, required
- `attachmentId` string, required

## Query parameters

- `postId` string

## Response `200`

Successful response

- Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Changes

- **2026-10-10** `476192916ddd`: 1 breaking
  - removed the media type `*/*` for the response with the status `200`

[Operation history](https://skmtc.dev/google/apis/classroom/changes/v1/courses/:courseId/announcements/:itemId/addOnAttachments/:attachmentId/delete.md)

---

[API](https://skmtc.dev/google/apis/classroom.md) - [All operations](https://skmtc.dev/google/apis/classroom/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/classroom/revisions/d9e82ce809f1?raw)
