DELETE

/user/:userId

x-api-key*
curl --request DELETE \
  --url https://api.sandbox.metriport.com/user/:userId \
  --header 'x-api-key: <x-api-key>'

Path Params

userIdrequired
string

The Metriport user ID to delete.

Response

messagerequired
string

Feedback on successful user deletion.

{
  "message": "User deleted successfully."
}
import { MetriportDevicesApi } from "@metriport/api-sdk";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

await metriportClient.deleteUser("metriportUserId");