method
RiduClient.delete
Delete or trash one document according to collection capabilities.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | MutationLocaleOptions< | The options value. |
Returns
The declared result.
Promise<DeleteEnvelope>Full signature
RiduClient.delete<Slug extends CollectionSlug<Config>>(
collection: Slug,
id: string,
options?: MutationLocaleOptions<LocaleFor<Config>>,
): Promise<DeleteEnvelope>Related types
CollectionSlugThe generated union of collection slugs.
MutationLocaleOptionsLocale and transport options shared by mutations without an optimistic-concurrency contract.
DeleteEnvelopeA successful delete response.