Delete a Real Estate

This methods deletes a real estate object by scout object ID or externalId.

DELETE /offer/v1.0/user/{username}/realestate/{id} or ...ext-{externalId}

Supported media types:
XML
JSON

Note that we recommend not to delete objects, but instead deactivate them.

Request

Path Parameters

PARAMETER DESCRIPTION
Username the username which the user uses for logging in to www.immobilienscout24
me "me" can be used instead of the username, when the user is logged in by 3-legged oauth
id the unique scout object ID, which is being created by POST REALESTATE automatically
external-id can be used instead of the scout object ID. it is the customer-defined ID of the real estate, must be unique per user

Response

XML:

<?xml version="1.0" encoding="UTF-8"?>
<common:messages xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<message>
<messageCode>MESSAGE_RESOURCE_DELETED</messageCode>
<message>Resource [realestate] with id [123456] has been deleted.</message>
<id>123456</id>
</message>
</common:messages>

JSON:

{
  "common.messages":[ {
    "message":{
      "messageCode":"MESSAGE_RESOURCE_DELETED",
      "message":"Resource [realestate] with id [123456] has been deleted."
      "id":62544913
    }
  } ]
}