presto-main/src/main/java/io/prestosql/metadata/MetadataManager.java/MetadataManager/supportsMetadataDelete
class MetadataManager:    @Override
    public boolean supportsMetadataDelete(Session session, TableHandle tableHandle)
    {
        CatalogName catalogName = tableHandle.getCatalogName();
        ConnectorMetadata metadata = getMetadata(session, catalogName);

        if (!metadata.usesLegacyTableLayouts()) {
            return false;
        }

        return metadata.supportsMetadataDelete(
                session.toConnectorSession(catalogName),
                tableHandle.getConnectorHandle(),
                tableHandle.getLayout().get());
    }