---
title: "Invoke action discardCheckout"
method: POST
path: "/drives/{driveId}/root/microsoft.graph.discardCheckout"
tags: ["drives.driveItem"]
---

# Invoke action discardCheckout

`POST /drives/{driveId}/root/microsoft.graph.discardCheckout`

Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded.  The same user that performed the checkout must discard it. Another alternative is to use application permissions.

## Path parameters

- `driveId` string, required

## Response `2XX`

Success

## Other responses

- `default` — error

---

[API](https://skmtc.net/ballerina-platform/apis/files.md) · [All operations](https://skmtc.net/ballerina-platform/apis/files/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ballerina-platform/files/versions/c34150e97737/schema)
