# Invalidate an upload URL
This endpoint invalidates the temporary upload URL. You will not be able to upload a Doc via this upload URL after it has been invalidated.
If a Doc was uploaded through the upload URL, but was not attached to the Twin through the attach_twin_doc endpoint, it will be deleted after the upload URL has been invalidated.
In order for a user to perform the "invalidate_upload_url" operation, the "invalidate_upload_url" permission must be included in the list of allowed actions in the statement of the user's role.
|string||path||URL handler generated through the create_upload_url endpoint. It is used in the attach_twin_doc endpoint to attach the Doc to a Twin and to store it in the Twin's directory.|
In our example, we want to invalidate the upload URL with the handler
# Status codes
Requests to this endpoint result in generic status codes. For a comprehensive list of status codes, please consult the Status Codes section.