DELETE
/
user
/
:userId
curl --request DELETE \
  --url https://api.sandbox.metriport.com/user/:userId \
  --header 'x-api-key: <api-key>'
import { MetriportDevicesApi } from "@metriport/api-sdk";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

await metriportClient.deleteUser("metriportUserId");

Path Params

userId
string
required

The Metriport user ID to delete.

Response

message
string
required

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");