Homepage

admin_model_schema_delete

Last edit: Nov 01, 2026

Deletes (soft-deletes) a model schema (table) found by physical_file_path (or
the deprecated id) and returns it. Same as admin_table_delete; fails while
records still exist

admin_model_schema_delete(
  id: ID
  physical_file_path: String
): ModelSchema

Arguments

id (ID)

Deprecated, use physical_file_path. Id of the schema to delete

physical_file_path (String)

physical_file_path of the schema to delete; takes precedence over id

Type

ModelSchema

Model schema, the former name of a table (app/schema). Deprecated, use Table instead

Questions?

We are always happy to help with any questions you may have.

contact us