When to use this endpoint

Use AssetTable_deleteAllTables only when resetting all Asset Table definitions. It is primarily retained for setup and test tooling; no production CRM button calls it.

Authentication and permissions

The request must authenticate with signed API-key fields or a logged-in CRM session. The handler performs no additional page or role-permission check.

The lookup and any write use the authenticated tenant; an ID from another tenant cannot be addressed through this call.

Parameters

This endpoint has no operation-specific parameters.

Example request

$result = FM_api('AssetTable_deleteAllTables');

Example response

{
  "ok": 1
}

Errors and unusual responses

ResponseCondition
{"error":"not logged in"}No authenticated tenant context is available. Invalid signed credentials can be rejected by the dispatcher before the handler runs.

Legacy application errors may be returned with HTTP 200. Check the decoded response for error, not only the HTTP status.

Behaviour and edge cases

  • A missing setting is treated as success.
  • The handler requires a logged-in user but performs no client-admin or page-permission check.

Side effects

  • Deletes all tenant setting rows named asset-tables and clears the settings cache. It writes no audit or deletion-poll entry.

See it in Fieldmotion

CRM1

No production CRM1 caller was found. The API regression setup uses this call to clear definitions before import tests.

CRM2

No production CRM2 caller was found. CRM2 removes individual definitions with AssetTable_deleteFromConfig instead.

Related endpoints