{% extends "broker/base.html" %}{% block title %}File cleanup · {{ project.name }}{% endblock %}{% block content %} {% include "broker/project_navigation.html" with current_page="File cleanup" %} {% if job %}

Back to {{ job.name }}

{% endif %}

File cleanup{% if job %} · {{ job.name }}{% endif %}

Remove local result files you no longer need{% if not job %} and unused internal files older than one day{% endif %}. Download and verify results you want to keep first. Deletion cannot be undone.

Active or uncertain executions, unfinished accounting, pending or failed collection, uploads, shared inputs and results referenced by jobs or optional modules are protected. Job identities, prepared packages, logs and accounting stay recorded.

Local file deletion and remote directory cleanup are separate actions. Managed environments and directories retained by optional modules are protected.

{% if completed %}

Cleanup finished. The preview below reflects the remaining files.

{% endif %}

Local file cleanup

{{ cleanup.rows|length }} object{{ cleanup.rows|length|pluralize }} · {{ cleanup.bytes|filesizeformat }} on disk · {{ cleanup.accounted_bytes|filesizeformat }} of recorded storage usage.

{% if cleanup.more %}

This preview is limited to 100 objects. Repeat after this batch to review the next files.

{% endif %} {% if cleanup.rows %}
{% for object in cleanup.rows %}{% endfor %}
File / objectSize on diskStatus
{% for artifact_id, attempt_id, path in object.outputs %}{{ path }}
{% empty %}{% if object.pending %}Previously approved deletion{% else %}Unused internal object{% endif %}
{% endfor %}SHA-256 {{ object.sha256 }}
{{ object.disk_bytes|filesizeformat }}{% if object.pending %}Resume interrupted deletion{% else %}Ready for deletion{% endif %}
{% csrf_token %}

Confirmation expires after ten minutes. Changes to files or their references require a fresh preview. Interrupted deletion can be resumed here.

{% else %}

No local files can currently be reclaimed safely. Protected files are kept.

{% endif %}

Remote attempt directories

Queue cleanup through the cluster's existing connector. The worker verifies the exact finished scheduler allocation and its owned directory before deleting files. Local result copies, submission journals and accounting stay recorded.

Remote byte counts are established by the worker during cleanup. No SSH connection or remote directory scan runs in this page. Cleanup may wait for the connector to reconnect; refresh this preview to check its saved status.

{% if remote_queued %}

The remote cleanup request was processed. Current saved statuses appear below.

{% endif %} {% if remote_cleanup.more %}

This preview covers the first 100 attempts. A job's own cleanup page can show its attempts directly.

{% endif %} {% if remote_cleanup.rows %}
{% for attempt in remote_cleanup.rows %}{% endfor %}
Job / attemptCleanup statusAction
{{ attempt.job }}
{{ attempt.id }}
{{ attempt.state }}{% if attempt.eligible %}Ready for cleanup{% else %}{{ attempt.reason }}{% endif %}
{% if remote_cleanup.eligible_count %}
{% csrf_token %}

Confirmation expires after ten minutes. The worker rechecks safety before deletion. Removed remote files can no longer be recovered through output collection.

{% endif %} {% else %}

No remote attempt directories currently need cleanup.

{% endif %}
{% endblock %}