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 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.
drop method is often used during initial design to allow altered table definitions to take effect.
% drop the Person table from the lab schema drop(lab.Person)
Dropping part tables¶
A part table is usually removed as a consequence of calling
drop on its master table.
This rule is currently not enforced in MATLAB, but calling
drop directly on a part table will produce an error in the future.
See issue #125 on
datajoint-matlab for more information.