Edit and Delete Files and Folders
Update Cloud Storage Information
Once files are uploaded to Encord, their cloud storage information can be updated at any time. This feature allows you to adjust the URL or cloud integration of a file without re-importing the data.
Move Files Between Folders
Use the following script to move various types of files to a different folder in Files. Ensure that you:
- Replace
<private_key_path>
with the path to your private key. - Replace
File Name
with the name of the file you want to move to a new folder. - Replace
Target Folder Name
with the name of the folder you want to move the file to.
Delete Files
Use the following scripts to delete different types of files from Files. Ensure that you:
- Replace
<private_key_path>
with the path to your private key. - Replace
File Name
with the name of the file you want to move to a new folder. - Replace
Parent Folder
with the name of the folder containing the file you want to delete.
Update Folder Properties
Use the following script to update the name and description of an existing folder in Files. Ensure that you:
- Replace
<private_key_path>
with the path to your private key. - Replace
Cat Videos
with the name of the folder you want to update properties for. - Replace
Cat videos and images
with the new name you want to give the folder. - Replace
Images and videos of cats
with the description you want to give the folder.
Move Folders
You can move folders between different parent folders in Files, including moving them to the root (no parent). The following script demonstrates how a folder with the name Folder Name 3
is moved between 2 different target folders. The script must be modified to suit your needs.
Ensure that you:
- Replace <private_key_path> with the path to your private key.
- Replace
Folder Name 1
with the name of a target folder. - Replace
Folder Name 2
with the new name of another target folder. - Replace
Folder Name 3
with the name of the folder that is moved.
Delete Folders
Use the following script to delete a specific folder from Files. Ensure that you:
- Replace <private_key_path> with the path to your private key.
- Replace
Specific Folder Name
with the name of the folder you want to delete.
Was this page helpful?