Rocky 9.x Owncloud delete files via REST API via command line

From Notes_Wiki
Revision as of 06:47, 7 October 2022 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > File Sharing > Owncloud > Delete files via REST API via command line If there is need to delete file from CLI instead of using Web login / Desktop client then use: <pre> curl -u <owncloud-username>:<owncloud-password> -X DELETE https://<owncloud-fqdn-or-ip>/owncloud/remote.php/webdav/<p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Rocky Linux or CentOS > Rocky Linux 9.x > File Sharing > Owncloud > Delete files via REST API via command line

If there is need to delete file from CLI instead of using Web login / Desktop client then use:

curl -u <owncloud-username>:<owncloud-password> -X DELETE https://<owncloud-fqdn-or-ip>/owncloud/remote.php/webdav/<path-of-file-to-be-deleted-with-respect-to-user-./>

If there are special characters in above https:// path then we need to URL encode them.


Refer:


Home > Rocky Linux or CentOS > Rocky Linux 9.x > File Sharing > Owncloud > Delete files via REST API via command line