To delete a specific repository item, send a Legacy REST Web Services request as described in the following table.

Request Component

Value

HTTP Method

DELETE

Functional Parameters

Include the new values for each property you are updating as functional parameters with the Legacy REST Web Services request.

URL

Include the component pathname of the repository in the application path after /rest/repository/. Include the name of the item type and the item identifier at the end of the path.

The following example shows a Legacy REST Web Services request that deletes an existing repository item in the /atg/userprofiling/ProfileAdapterRepository repository.

curl -v -b cookies.txt -X DELETE \
http://myserver:8080/rest/repository/atg/userprofiling/ProfileAdapterRepository/
user/130037

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> DELETE /rest/repository/atg/userprofiling/ProfileAdapterRepository/user/130037
HTTP/1.1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 zlib/1.2.5
> Host: myserver:8080
> Accept: */*
> Cookie: DYN_USER_ID=140003; JSESSIONID=E8FF855FEF5C59ECF6FA9D1A69F1C30D;
DYN_USER_CONFIRM=1231cf3e7573bf936dbd29dbbbfe150b
>
< HTTP/1.1 410 Gone
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< X-ATG-Version: version=
QVRHUGxhdGZvcm0vMTAuMCxDb21tZXJjZVJlZmVyZW5jZVN0b3JlLzEwLjAgWyBQbGF0Zm9
ybUxpY2Vuc2UvMCBCMkNMaWNlbnNlLzAgIF0=
< Content-Type: application/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 01 Nov 2010 20:21:19 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

<atgResponse>true</atgResponse>
* Connection #0 to host myserver left intact
* Closing connection #0

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices