Attention

This is no longer maintained and has been superseded by datajoint-company/datajoint-docs. Please file new issues there (or help contribute!). We are currently migrating and generating new content until December 2022 after which we’ll be decomissioning https://docs.datajoint.org and https://tutorials.datajoint.org in favor of https://datajoint.com/docs/.

Drop

The drop method completely removes a table from the database, including its definition. It also removes all dependent tables, recursively. DataJoint will first display the tables being dropped and the number of entities in each before prompting the user for confirmation to proceed.

The drop method is often used during initial design to allow altered table definitions to take effect.

# drop the Person table from its schema
Person.drop()

Dropping part tables

A part table is usually removed as a consequence of calling drop on its master table.

Talk to the Community