Legacy | Delete Item from Repository

Restriction: This information no longer refers to the latest product version but may still be relevant if you are working with an older version.

Deletes the item specified by <repositoryItemKey> from the repository area specified by <repository>

Request syntax

Copy
https://mycloud.perfectomobile.com/services/repositories/<repository>/<repositoryItemKey>?operation=delete&securityToken=value&optionalParameter=value]
Important: All REST API commands require authentication. See the general authentication methods in Authentication and authorization.

Parameters

Name Type Default Description
securityToken* string
A unique cryptographic key assigned to an authorized user.
admin  boolean
true to allow users with administrative credentials to delete other users items in the public repository, items in the private repository of other automation users, and folder that are not empty. 
owner  string 
The user name of the user who owns the item. This parameter is used in conjunction with the admin parameter to correctly identify items stored in PRIVATE or GROUP repositories of the owner. For example, if an user with administrative credentials wants to delete an item where the repositoryItemKey is PRIVATE:myItem.jpg or GROUP:myItem.jpg, specify the parameters as admin=true and owner=itemUser.
group  string 
The group name. This parameter is used in conjunction with the admin parameter to correctly identify items stored in GROUP repositories. For example, if a user with administrative credentials wants to delete an item where the repositoryItemKey is GROUP:myItem.jpg , specify the parameters as admin=true and group= groupName.
responseFormat  string  json Format of response: json, xml

* Mandatory parameter

Response

Name Description
status  success if the operation completed successfully; otherwise failure.
completionCode  The completion code of the operation. The following are the possible values: 
deleted 
readOnly 
notFound 
failed