oko-management
    Preparing search index...

    Function getDeleteStandardizedResponse

    • Deletes a record from the API with standardized response handling.

      Parameters

      • apiUrl: string

        The URL of the API endpoint to delete data from.

      • id: { id: string | number }

        The ID of the record to be deleted.

      Returns Promise<{ data: any }>

      A promise that resolves to an object containing the deleted data.