Box Developer Documentation
Latest version

Remove watermark from file

delete
https://api.box.com/2.0
/files/:file_id/watermark

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Removes the watermark from a file.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

The unique identifier that represents a file.

The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/files/123 the file_id is 123.

Response

none

Removes the watermark and returns an empty response.

application/jsonClient error

Returns an error if the file did not have a watermark applied to it.

application/jsonClient error

An unexpected client error.

delete
Remove watermark from file
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


cURL
curl -i -X DELETE "https://api.box.com/2.0/files/12345/watermark" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.fileWatermarks.deleteFileWatermark(file.id);
Python v10
client.file_watermarks.delete_file_watermark(file.id)
.NET v10
await client.FileWatermarks.DeleteFileWatermarkAsync(fileId: file.Id);
Swift v10
try await client.fileWatermarks.deleteFileWatermark(fileId: file.id)
Java v10
client.getFileWatermarks().deleteFileWatermark(file.getId())
Java v4
BoxFile file = new BoxFile(api, id);
file.removeWatermark();
Python v3
client.file(file_id='12345').delete_watermark()
print('The file watermark was deleted!')
.NET v5
await client.FilesManager.RemoveWatermarkAsync("11111");
Node v3
client.files.removeWatermark('11111')
	.then(() => {
		// removal succeeded — no value returned
	});