Skip to content
Get started

Delete

client.pets.delete(numberpetID, PetDeleteParams { body } params?, RequestOptionsoptions?): PetDeleteResponse { message }
DELETE/pets/{petId}
ParametersExpand Collapse
petID: number
params: PetDeleteParams { body }
body?: Body
ReturnsExpand Collapse
PetDeleteResponse { message }
message: string

Delete

import Barkend from 'barkend';

const client = new Barkend({
  bearerToken: process.env['BARKEND_BEARER_TOKEN'], // This is the default and can be omitted
});

const pet = await client.pets.delete(0);

console.log(pet.message);
{
  "message": "message"
}
Returns Examples
{
  "message": "message"
}