Rust
Delete a record
Remove a stored record using your application-owned client ID.
delete_a_record removes a record by client_id, the identifier supplied when you created it. It does not accept the Insion record id returned from a list or moderation response.
let request = DeleteApiV1IngestRequest::builder()
.client_id("post-123")
.build()?;
let response = client.delete_a_record(&request, None).await?;
println!("{}", response.message);Signature and result
async fn delete_a_record(
&self,
request: &DeleteApiV1IngestRequest,
options: Option<RequestOptions>,
) -> Result<SuccessResponse, ApiError>The request builder requires only client_id. On success, SuccessResponse.message confirms the API result; it does not return the deleted record. A missing record or bad credentials produces a typed ApiError, usually NotFoundError or UnauthorizedError.
Deletion changes server state. Do not automatically retry after an ambiguous timeout without reconciling the result, and save any application data needed for audit or UI before calling the method.