Skip to content
Get started

Deletes a pet

client.pets.delete(numberpetID, RequestOptionsoptions?): void
DELETE/pet/{petId}

delete a pet

ParametersExpand Collapse
petID: number
formatint64

Deletes a pet

import RpTestDocs1 from 'rp-test-docs-1';

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

await client.pets.delete(0);
Returns Examples