Skip to content

deleteUserHard ​

Allows yopmail.com users typically used for testing and test automation to be "hard deleted" from the system to help clean up test accounts.

Request ​

http
DELETE /rest/internal/user

Headers ​

HeaderRequiredDescription
x-nextinteract-company-api-keyYesAdmin-specific API key UUID provided to company

Parameters ​

ParameterTypeRequiredDescription
userIdIntegerNoUser id to delete.
userEmailStringNoUser email to delete.

NOTE: only one of the above can be passed but at least one of them must be passed.

Response ​

200 for successful delete. No BODY returned for HTTP DELETE ​

400 for invalid request object such as API Key or userId or userEmail or Email not "@yopmail.com" 500 if a server error occurred. OK

Sample calls: /rest/internal/user?userId=123 /rest/internal/user?userEmail=abc@yopmail.com

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSIncorrectApiKeyTypeExceptionSee Error Definitions
WSInvalidSystemConfigurationExceptionSee Error Definitions
WSCompanyApiKeyNotActiveExceptionSee Error Definitions
WSRecordNotFoundExceptionSee Error Definitions
WSUserServiceExceptionSee Error Definitions
WSUserNotFoundExceptionSee Error Definitions
WSOperationNotSupportedExceptionSee Error Definitions