Skip to content

Delete

//trimblecloud-fileservice/trimblecloud.fileservice/FilesAPI/delete

delete

[JVM]
abstract fun delete(@NonNullspaceId: @NonNullUUID, @NonNullfileId: @NonNullUUID): CompletableFuture<Response<JobInfo>>

Deletes the file.

Return

  • A future that resolves to a Response object containing the result of the delete operation.

Parameters

JVM

spaceId- The space id.
fileId- The file id.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.

[JVM]
abstract fun delete(@NonNullspaceId: @NonNullUUID, @NonNullfileId: @NonNullUUID, permanent: Boolean): CompletableFuture<Response<JobInfo>>

Deletes the file.

Return

  • A future that resolves to a Response object containing the result of the delete operation.

Parameters

JVM

spaceId- The space id.
fileId- The file id.
permanent- If true, the file is deleted permanently.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.

[JVM]
abstract fun delete(@NonNullrequest: @NonNullDeleteFileRequest): CompletableFuture<Response<JobInfo>>

Deletes the file.

Return

  • A future that resolves to a Response object containing the result of the delete operation.

Parameters

JVM

request- Request to delete a file.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.

[JVM]
abstract fun delete(@NonNullrequest: @NonNullDeleteFileRequest, @NonNullrequestHeader: @NonNullRequestHeader): CompletableFuture<Response<JobInfo>>

Deletes the file.

Return

  • A future that resolves to a Response object containing the result of the delete operation.

Parameters

JVM

request- Request to delete a file.
requestHeader- The request header containing additional information.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.