...
The main function for uploading or updating a file in the Python client is through the store
function. For more information about this function, see the Python Docs.
Code Block |
---|
import synapseclient from synapseclient import File syn = synapseclient.login() # Add a local file to an existing project (syn12345) on Synapse file = File(path='/path/to/raw_data.txt', parent='syn12345') file = syn.store(file) |
...
To see a file preview, navigate to the Files tab of a project and click on the file name. If a file preview is available, it will be visible in the left window.
Deleting a Project
Deleting a project will permanently remove it from Synapse. The synID that was associated with the deleted project will not be re-used. To delete a project:
Navigate to the project you want to delete
Within the project, click the Project Tools button
Click Delete Project
In the dialog box, click the red Delete button to permanently delete the project, or click Cancel if you do not want to delete the project