Community articleDeleting a file share
Added by IBM contributorIBM on March 25, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Delete a file share programmatically.



Delete a file share programmatically.

Only the owner of a file can delete shares from that file.

See Authenticating requests for information about how to authenticate the request.

Note: {document-id} is the value of the <td:uuid> element in the file's Atom entry document.

You can use the following header.

You can use one or more of these input parameters. Separate multiple parameters with an ampersand (&).

Input

None.

Output

None.

Input
Method URI Description
DELETE /files/basic/api/shares/feed Delete a file share programmatically.
Name Type Optional Description
sharedWhat
string No String. Document uuid. Delete a set of share resources for the specified document. This is the value of the <td:uuid> element in the file's Atom entry document.
sharedWith
string Yes User ID of the user with whom the document has been shared, but you would like to prevent from having access to it. You can specify more than one person. Separate multiple user IDs with a comma. Any share resources for the document that have the specified users as targets of the share will be deleted. The default is to delete the document's shares with all users.
Name Type Optional Description
X-Method-Override
string Yes Tunnels a DELETE request over HTTP POST
X-Update-Nonce
string Yes String. Represents a unique data string generated by the server upon request that you can provide to secure the request. See Getting a nonce key for information about how to request the data string.
Output
Code Description
204
Indicates that the file metadata was successfully deleted.
401
Unauthorized.
404
Not Found.
References