presto-main/src/main/java/io/prestosql/metadata/MetadataManager.java/MetadataManager/executeDelete
class MetadataManager:    @Override
    public OptionalLong executeDelete(Session session, TableHandle table)
    {
        CatalogName catalogName = table.getCatalogName();
        ConnectorMetadata metadata = getMetadataForWrite(session, catalogName);
        ConnectorSession connectorSession = session.toConnectorSession(catalogName);

        if (metadata.usesLegacyTableLayouts()) {
            checkArgument(table.getLayout().isPresent(), "table layout is missing");
            return metadata.metadataDelete(session.toConnectorSession(catalogName), table.getConnectorHandle(), table.getLayout().get());
        }
        checkArgument(!table.getLayout().isPresent(), "table layout should not be present");

        return metadata.executeDelete(connectorSession, table.getConnectorHandle());
    }