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

From Notes_Wiki

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