Copy and Delete
Learn how to perform copy and delete operations using the Dropbox API.
In this lesson, our goal is to explore the endpoints of the file
namespace that allow us to copy content from the source to the destination path and delete content. The endpoint operations we’ll focus on are the following:
copy_v2
delete_v2
Copy a file or a folder
The /files/copy_v2
endpoint lets us copy a file or folder to another location in Dropbox. If the specified source path is a folder, then all of its content will be copied. This endpoint requires us to enable the files.content.write
permission.
Request parameters
Let’s see some of the parameters for this call in the table below.
Note: We’ve manually added some files to the
TestFolder
that we created in the previous lesson so that we may copy them to another folder.
Get hands-on with 1200+ tech skills courses.