scope: files.content.write

Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too. A successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object.

Parameters

ParameterDescription
PathPath in the user’s Dropbox to delete.

Example Output

{    "value": {        "metadata": {            ".tag": "file",            "client_modified": "2015-05-12T15:50:38Z",            "content_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",            "file_lock_info": {                "created": "2015-05-12T15:50:38Z",                "is_lockholder": true,                "lockholder_name": "Imaginary User"            },            "has_explicit_shared_members": false,            "id": "id:a4ayc_80_OEAAAAAAAAAXw",            "is_downloadable": true,            "name": "Prime_Numbers.txt",            "path_display": "/Homework/math/Prime_Numbers.txt",            "path_lower": "/homework/math/prime_numbers.txt",            "property_groups": [                {                    "fields": [                        {                            "name": "Security Policy",                            "value": "Confidential"                        }                    ],                    "template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa"                }            ],            "rev": "a1c10ce0dd78",            "server_modified": "2015-05-12T15:50:38Z",            "sharing_info": {                "modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",                "parent_shared_folder_id": "84528192421",                "read_only": true            },            "size": 7212        }    }}

Workflow Library Example

Delete Folder or File with Dropbox and Send Results Via Email

Preview this Workflow on desktop