Skip to content

files in Team folder cant be deleted error: ("Delete file" failed on some elements) #4145

@jalilelectronic

Description

@jalilelectronic

Expected behaviour

files in Team folder cant be deleted but upload share and...
on deleting error: "Delete file" failed on some elements

Actual behaviour

on deleting bu web error come and cant delete it

Server configuration

Operating system: linux ubontu

Web server: apache

Database: mysql

PHP version:

Nextcloud version: 31.0.10

**Team folders version:**Version 19.1.9, AGPL-licensed

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: on installling linux by snap

Are you using external storage, if yes which one: local/s3/smb/sftp/... no

Are you using encryption: yes ssl

Are you using an external user-backend, if yes which one: LDAP

Client configuration

Browser: chrome firefox nextcloud agent

Operating system: win 11

Logs

in browser console error 👍

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:o="http://owncloud.org/ns">
<s:exception>OCA\DAV\Connector\Sabre\Exception\Forbidden</s:exception>
<s:message>Access denied by access control</s:message>
<o:retry xmlns:o="o:">false</o:retry>
<o:reason xmlns:o="o:">Access denied by access control</o:reason>
</d:error>

Web server error log

Web server error log

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:o="http://owncloud.org/ns">
<s:exception>OCA\DAV\Connector\Sabre\Exception\Forbidden</s:exception>
<s:message>Access denied by access control</s:message>
<o:retry xmlns:o="o:">false</o:retry>
<o:reason xmlns:o="o:">Access denied by access control</o:reason>
</d:error>

Insert your browser log here, this could for example include:

a) The javascript console log 
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:o="http://owncloud.org/ns">
  <s:exception>OCA\DAV\Connector\Sabre\Exception\Forbidden</s:exception>
  <s:message>Access denied by access control</s:message>
  <o:retry xmlns:o="o:">false</o:retry>
  <o:reason xmlns:o="o:">Access denied by access control</o:reason>
</d:error>


b) The network log
{
    "app": "files",
    "uid": "F540475D-1EC3-4E86-B8E0-D39109B5121B",
    "level": 2,
    "error": {
        "message": "Request failed with status code 403",
        "name": "AxiosError",
        "stack": "AxiosError: Request failed with status code 403\n    at r (https://ftpcloud.xx.xx/dist/core-common.js?v=c939e5b3-0:1:3225413)\n    at XMLHttpRequest.E (https://ftpcloud.xx.xx/dist/core-common.js?v=c939e5b3-0:1:4646008)\n    at F.request (https://ftpcloud.xx.xx/dist/core-common.js?v=c939e5b3-0:1:2359398)\n    at async R (https://ftpcloud.xx.xx/dist/files-init.js?v=c939e5b3-0:1:11457)\n    at async g.exec (https://ftpcloud.xx.xx/dist/files-init.js?v=c939e5b3-0:1:12608)\n    at async le (https://ftpcloud.xx.xx/dist/files-main.js?v=c939e5b3-0:1:448787)\n    at async o.onActionClick (https://ftpcloud.xx.xx/dist/files-main.js?v=c939e5b3-0:1:502351)",
        "config": {
            "transitional": {
                "silentJSONParsing": true,
                "forcedJSONParsing": true,
                "clarifyTimeoutError": false
            },
            "adapter": [
                "xhr",
                "http",
                "fetch"
            ],
            "transformRequest": [
                null
            ],
            "transformResponse": [
                null
            ],
            "timeout": 0,
            "xsrfCookieName": "XSRF-TOKEN",
            "xsrfHeaderName": "X-XSRF-TOKEN",
            "maxContentLength": -1,
            "maxBodyLength": -1,
            "env": {},
            "headers": {
                "Accept": "application/json, text/plain, */*",
                "requesttoken": "iHlczlQNErw4D4WXWJQstoEWPyD19qeQBVyEqQVfV5o=:/jwa+2c7QN1qZO7hCvla7LJ9aVO/tOr7ZjC3zXEtJ+I=",
                "X-Requested-With": "XMLHttpRequest"
            },
            "method": "delete",
            "url": "https://ftpcloud.xx.xx/remote.php/dav/files/F540475D-1EC3-4E86-B8E0-D39109B5121B/test/ICT-QR-002-04.pdf",
            "allowAbsoluteUrls": true,
            "axios-retry": {
                "retries": 0,
                "shouldResetTimeout": false,
                "validateResponse": null,
                "retryCount": 0,
                "lastRequestTime": 1762861363150
            }
        },
        "code": "ERR_BAD_REQUEST",
        "status": 403
    },
    "source": "https://ftpcloud.xx.xx/remote.php/dav/files/F540475D-1EC3-4E86-B8E0-D39109B5121B/test/ICT-QR-002-04.pdf",
    "node": {
        "_data": {
            "displayname": "ICT-QR-002-04.pdf",
            "id": 211142,
            "source": "https://ftpcloud.xx.xx/remote.php/dav/files/F540475D-1EC3-4E86-B8E0-D39109B5121B/test/ICT-QR-002-04.pdf",
            "mtime": "2025-05-06T07:56:09.000Z",
            "mime": "application/pdf",
            "size": 197684,
            "permissions": 27,
            "owner": "F540475D-1EC3-4E86-B8E0-D39109B5121B",
            "root": "/files/F540475D-1EC3-4E86-B8E0-D39109B5121B",
            "attributes": {
                "filename": "/files/F540475D-1EC3-4E86-B8E0-D39109B5121B/test/ICT-QR-002-04.pdf",
                "lastmod": "Tue, 06 May 2025 07:56:09 GMT",
                "type": "file",
                "etag": "52f49d400ec775af5731ad3c0a757d88",
                "getcontentlength": 197684,
                "getcontenttype": "application/pdf",
                "getetag": "\"52f49d400ec775af5731ad3c0a757d88\"",
                "getlastmodified": "Tue, 06 May 2025 07:56:09 GMT",
                "creationdate": "1970-01-01T00:00:00+00:00",
                "resourcetype": "",
                "has-preview": false,
                "mount-type": "group",
                "comments-unread": 0,
                "favorite": 0,
                "owner-display-name": "my name",
                "owner-id": "F540475D-1EC3-4E86-B8E0-D39109B5121B",
                "hidden": false,
                "is-mount-root": false,
                "reminder-due-date": "",
                "sharees": "",
                "share-attributes": "[]",
                "share-types": "",
                "share-permissions": 19,
                "system-tags": "",
                "hasPreview": false
            }
        },
        "_attributes": {
            "filename": "/files/F540475D-1EC3-4E86-B8E0-D39109B5121B/test/ICT-QR-002-04.pdf",
            "lastmod": "Tue, 06 May 2025 07:56:09 GMT",
            "type": "file",
            "etag": "52f49d400ec775af5731ad3c0a757d88",
            "getcontentlength": 197684,
            "getcontenttype": "application/pdf",
            "getetag": "\"52f49d400ec775af5731ad3c0a757d88\"",
            "getlastmodified": "Tue, 06 May 2025 07:56:09 GMT",
            "creationdate": "1970-01-01T00:00:00+00:00",
            "resourcetype": "",
            "has-preview": false,
            "mount-type": "group",
            "comments-unread": 0,
            "favorite": 0,
            "owner-display-name": "my name",
            "owner-id": "F540475D-1EC3-4E86-B8E0-D39109B5121B",
            "hidden": false,
            "is-mount-root": false,
            "reminder-due-date": "",
            "sharees": "",
            "share-attributes": "[]",
            "share-types": "",
            "share-permissions": 19,
            "system-tags": "",
            "hasPreview": false
        },
        "_knownDavService": {},
        "readonlyAttributes": [
            "source",
            "encodedSource",
            "basename",
            "displayname",
            "extension",
            "dirname",
            "mime",
            "mtime",
            "crtime",
            "size",
            "attributes",
            "permissions",
            "owner",
            "isDavResource",
            "isDavRessource",
            "root",
            "path",
            "fileid",
            "status",
            "data"
        ],
        "handler": {}
    }
}
</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions