• DELETE HTTP request

    Parameters

    Returns DeleteOperation

    Operation for DELETE request

    Throws

    • RestApiError

    Example

    Send a DELETE request

    import { del } from '@aws-amplify/api';

    const { statusCode } = await del({
    apiName,
    path,
    options: {
    headers, // Optional, A map of custom header key/values
    queryParams, // Optional, A map of query strings
    }
    }).response;