---
id: object/page/1927
type: object
title: Page 1927 "Detached Media Cleanup"
summary: Page 1927 "Detached Media Cleanup" in System Application (System.DataAdministration). Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - page
  - system application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: dab77c87feb8a08fe39d747219fc41ad44f87753572ce6f817d2145b8b79056b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Data%20Administration/src/DetachedMediaCleanup.Page.al
    title: src/System Application/App/Data Administration/src/DetachedMediaCleanup.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 1927
name: Detached Media Cleanup
namespace: System.DataAdministration
app: System Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 1
  events: 0
  subscribers: 0
  controls: 13
  actions: 4
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Page 1927 "Detached Media Cleanup"

> Page 1927 "Detached Media Cleanup" in System Application (System.DataAdministration). Present since at least BC23, still in BC30.

System Application · System.DataAdministration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Data%20Administration/src/DetachedMediaCleanup.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Detached Media Cleanup |
| Extensible | false |
| SourceTable | Tenant Media |
| PageType | Worksheet |
| ApplicationArea | All |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Content | This page provides an overview of what kinds of detached media you have. Detached media is media which is not directly referenced. All Microsoft extensions references media directly. You can either delete individual detached media or schedule a background task to clear all detached media when you ar... | label | — |
|  | Load Limit | `LoadLimit` | Specifies the maximum number of records to load. Depending on the limit, this may take a long time to complete. |
|  | Company Filter | `CompanyFilter` | Specifies the filter to a specific company. |
|  | Load Detached Media Set | `LoadDetachedMediaSet` | Specifies whether media from detached media sets should be included. |
| DetachedMedia | FileName | `Rec."File Name"` | Specifies the name of the file. |
|  | MimeType | `Rec."Mime Type"` | Specifies the file type |
|  | CompanyName | `Rec."Company Name"` | Specifies which company this media is created in. |
|  | Description | `Rec.Description` | Specifies the description of the media. |
|  | CreatingUser | `Rec."Creating User"` | Specifies the user who created the media. |
|  | CreatedBy | `Rec.SystemCreatedBy` | Specifies the user who created the media. |
|  | Id | `Rec.ID` | Specifies a unique identifier for this media. |
|  | SecurityToken | `Rec."Security Token"` | Specifies the security token of this media. |
| FactBoxes | MediaFactBox | part [Page 1928 "Media Cleanup FactBox"](../page/1928.md) | — |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Schedule cleanup task | Schedules a task to cleanup all all detached media entries in the database. |  |
|  | Load Detached Media | Load detached media based on the settings. |  |
|  | Delete | Deletes the selected rows. |  |
|  | Download Media | Downloads the content of the media. |  |

## Procedures

1 local procedures, no public ones.

## Triggers

OnDeleteRecord, OnOpenPage

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1927 "Media Cleanup"](../codeunit/1927.md) (2 calls: `RefreshDetachedMedia → GetDetachedTenantMedia`, `RefreshDetachedMedia → GetTenantMediaFromDetachedMediaSet`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "Detached Media Cleanup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
