mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-24 21:45:21 +00:00
deploy: d22c1c862c
This commit is contained in:
@@ -303,13 +303,18 @@ See also <a href="#purge-remote-media-api">Purge Remote Media API</a>.</p>
|
||||
</ul>
|
||||
<h2 id="delete-local-media-by-date-or-size"><a class="header" href="#delete-local-media-by-date-or-size">Delete local media by date or size</a></h2>
|
||||
<p>Request:</p>
|
||||
<pre><code>POST /_synapse/admin/v1/media/delete?before_ts=<before_ts>
|
||||
|
||||
{}
|
||||
</code></pre>
|
||||
<p><em>Deprecated in Synapse v1.78.0:</em> This API is available at the deprecated endpoint:</p>
|
||||
<pre><code>POST /_synapse/admin/v1/media/<server_name>/delete?before_ts=<before_ts>
|
||||
|
||||
{}
|
||||
</code></pre>
|
||||
<p>URL Parameters</p>
|
||||
<ul>
|
||||
<li><code>server_name</code>: string - The name of your local server (e.g <code>matrix.org</code>).</li>
|
||||
<li><code>server_name</code>: string - The name of your local server (e.g <code>matrix.org</code>). <em>Deprecated in Synapse v1.78.0.</em></li>
|
||||
<li><code>before_ts</code>: string representing a positive integer - Unix timestamp in milliseconds.
|
||||
Files that were last used before this timestamp will be deleted. It is the timestamp of
|
||||
last access, not the timestamp when the file was created.</li>
|
||||
|
||||
Reference in New Issue
Block a user