continuwuity/docs/reference/admin/media.md
Shane Jaroch 526d862296
All checks were successful
Documentation / Build and Deploy Documentation (push) Successful in 1m33s
Checks / Prek / Pre-commit & Formatting (push) Successful in 3m24s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 13m10s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 17m7s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 29s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 30m26s
Release Docker Image / Build linux-amd64 (max-perf) (push) Successful in 20m44s
Release Docker Image / Build linux-arm64 (max-perf) (push) Successful in 20m44s
Release Docker Image / Create Max-Perf Manifest (push) Successful in 1m36s
fix: more aggressive user agent for URL preview
adding "facebookexternalhit" alongside "embedbot" fixes many errors, such as YouTube Music's:
    "Your browser is deprecated. Please upgrade."

add admin command to clear URL stuck and broken data (per URL currently)

    add command to clear all saved URL previews.
    sync resolver docs.
2026-02-23 15:24:14 +00:00

1.3 KiB

!admin media

Commands for managing media

!admin media delete

Deletes a single media file from our database and on the filesystem via a single MXC URL or event ID (not redacted)

!admin media delete-list

Deletes a codeblock list of MXC URLs from our database and on the filesystem. This will always ignore errors

!admin media delete-past-remote-media

Deletes all remote (and optionally local) media created before/after [duration] ago, using filesystem metadata first created at date, or fallback to last modified date. This will always ignore errors by default.

  • Examples:
    • Delete all remote media older than a year:

      !admin media delete-past-remote-media -b 1y

    • Delete all remote and local media from 3 days ago, up until now:

      !admin media delete-past-remote-media -a 3d -yes-i-want-to-delete-local-media

!admin media delete-all-from-user

Deletes all the local media from a local user on our server. This will always ignore errors by default

!admin media delete-all-from-server

Deletes all remote media from the specified remote server. This will always ignore errors by default

!admin media delete-url-preview

Deletes a cached URL preview, forcing it to be re-fetched. Use --all to purge all cached URL previews