Search

Delete File

Last Updated: Nov 4, 2020

Articles

Use this function to delete a file in Dropbox.

Syntax

Delete File (access_token, dropbox_path)

Parameters

Input Parameter Name Description
access_token Access token of Dropbox
dropbox_path Path of the file that needs to be deleted

Returns

Return Value Description
Output
  • On Success: 1, File deleted successfully
  • On Failure: 0, Error Message

Sample

Delete File (ABCDCEF, Source/New_file.txt)

  • Uses the access token ‘ABCDCEF’ to connect to the Dropbox account, deletes the file ‘Source/New_file.txt’.
    Returns ‘File deleted successfully’ on deleting the file.

To view all the Dropbox functions, click here.

Did you find what you were looking for?