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

# DELETE /v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}

`DELETE /v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}`

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
- `postId` string, required
- `attachmentId` string, required

## Query parameters

- `itemId` string

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/classroom.md) · [All operations](https://skmtc.net/google/apis/classroom/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/classroom/versions/1b98f151d40b/schema)
