Skip to content

Delete

//trimblecloud-fileservice/trimblecloud.fileservice/FoldersAPI/delete

delete

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

Deletes an empty folder by Id. Soft delete is performed.

Return

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

Parameters

JVM

spaceId- The space id.
folderId- The folder 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, @NonNullfolderId: @NonNullUUID, @NonNullparams: @NonNullDeleteFolderParams): CompletableFuture<Response<JobInfo>>

Deletes a folder by Id.

Return

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

Parameters

JVM

spaceId- The space id.
folderId- The folder id.
params- The parameters to delete the folder.

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: @NonNullDeleteFolderRequest): CompletableFuture<Response<JobInfo>>

Deletes a folder by Id.

Return

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

Parameters

JVM

request- The request to delete the folder.

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: @NonNullDeleteFolderRequest, @NonNullrequestHeader: @NonNullRequestHeader): CompletableFuture<Response<JobInfo>>

Deletes a folder by Id.

Return

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

Parameters

JVM

request- The request to delete the folder.
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.