# Deleting files from a job's folder

> With job control on, the Files tab of your own job can delete files and folders inside that job's folder, each time after a confirmation.

Source: https://hiveboard.dev/docs/job-control/delete-files · Section: Job control · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- Delete appears in the Files tab only for your own jobs, on a server with job control on.
- Every delete is confirmed, with the list of what goes; there is no undo.
- Only paths inside the job's folder can be deleted, never the folder itself.
- On the server it is rm -rf on the paths you selected, at most 200 at a time.

With [job control](/docs/job-control/turn-on-job-control) on for a server,
the [Files tab](/docs/job/files-tab) of one of your own jobs can delete files
and folders inside that job's folder — to clear out large scratch files, for
example. Each delete is confirmed first, and nothing outside the job's
folder, nor the folder itself, can be removed.

## Where Delete appears

- A **Delete** button (a bin) at the end of each row.
- **Delete selected** in the bar that appears when you tick items. The box in
  the header ticks every item in the folder you are looking at.

Both are there only for your own jobs, running or finished, on a server with
job control on. They are not offered for a folder opened from the
[Folders page](/docs/folders/browse-folders): a folder has no job, and the
server refuses to delete there.

## Deleting

1. Open the job and its **Files** tab.
2. Tick the files and folders to remove, or use the bin on one row.
3. Press **Delete selected**.
4. The confirmation, **Delete 3 items?** for example, lists the items (the
   first twelve, then how many more) and says it "permanently removes the
   following from this job's folder on the server. It cannot be undone."
5. Press **Delete 3 items** (with your number) — or **Keep it**.

A message says "Deleted 3 items.", or names the first item that could not be
deleted and why. The file list is read again.

> [!TIP]
> Not sure? Press **Download selected** first: the same ticked items arrive
> on your computer as one archive.

## What is checked

On HiveBoard's own server, before anything is removed:

- **Job control** is on for that server, and the job belongs to your login
  user there (`whoami`). The page treats the jobs of people you named under
  **Highlight users** like yours and may show them the buttons; the server
  refuses to delete in their folders.
- **Every path stays inside the job's folder.** A path is resolved first; one
  that would lead outside is refused.
- **The job's folder itself** is refused outright: "Refusing to delete the
  job's root folder."
- **At most 200 items at a time.** A larger selection is refused whole,
  rather than deleted in part: "Select at most 200 and repeat — HiveBoard
  will not silently delete part of a selection."

## What runs on the server

`rm -rf` on each selected path that exists — a folder goes with everything in
it. An item that was already gone is reported as not found, not as deleted.
There is no backup and no trash. Afterwards HiveBoard forgets what it had read
from the folder, so the job's numbers, structure and file list are read
afresh.

## Check yourself

1. Which of these can Delete in the Files tab never remove?
   - The job's own folder ← the answer
   - A subfolder inside the job's folder
   - A large output file
   - Several files at once
   Why: Every path must lie inside the job's folder, and the folder itself is refused outright.

2. Can you get a deleted file back through HiveBoard?
   - No — it is removed with rm -rf, without a backup ← the answer
   - Yes, from HiveBoard's trash
   - Yes, from a copy HiveBoard keeps on your computer
   - Only if it was a folder
   Why: HiveBoard keeps no copy; download anything you may need before deleting it.

## Try it in the app

- Open the **Files** tab of a finished job of yours, tick one file, press **Delete selected**, read the confirmation, then press **Keep it**.

## Related

- [The Files tab](https://hiveboard.dev/docs/job/files-tab.md)
- [Turning on job control](https://hiveboard.dev/docs/job-control/turn-on-job-control.md)
- [What HiveBoard may change on a cluster](https://hiveboard.dev/docs/safety/what-hiveboard-may-change.md)
- [Browsing folders](https://hiveboard.dev/docs/folders/browse-folders.md)
