Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correcting links to the python docs pages

...

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:

  1. Navigate to the project you want to delete

  2. Within the project, click the Project Tools button

  3. Click Delete Project

  4. 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