delete group resources
/groups/{group}/resources/delete [POST]
| API Support | Available since | Last updated | Output |
|---|---|---|---|
Description
Delete a resource on the specified project.
This service has been deprecated in PageSeeder 5.8 and is scheduled to be removed.
Use Service: /groups/{group}/resources [DELETE] instead.
The location parameter must be the absolute location of the resource to delete from the web app folder. For example:
/WEB-INF/foo/document.xsl/WEB-INF/foo.bar/my/document.js/woconfig/foo/style/test.css
Only resources which are not part of the default Kit can be deleted.
Parameters
| Name | Description | Required | Type | Default |
|---|---|---|---|---|
| location | The path to the resource to delete relative to the root of the Web container | yes | string |
Permission
Only members who have the permission to manage the project can invoke this service.
Response
For files:
<file name="[name]"
path="[path]"
type="file"
media-type="[media type]"
status="deleted"/>
For folders:
<file name="[name]"
path="[path]"
type="folder"
status="deleted"/>
Error Handling
No specific errors expected for this service.
This service returns non-standard error messages. This might change in the near future.