Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

408 B
Raw Blame
import {
  isInstanceAnalyticsCustomCollection,
  isTrashedCollection,
} from "metabase/common/collections/utils";
import type { Collection } from "metabase-types/api";

export function canCleanUp(collection: Collection): boolean {
  return Boolean(
    !isInstanceAnalyticsCustomCollection(collection) &&
    !isTrashedCollection(collection) &&
    !collection.is_sample &&
    collection.can_write,
  );
}