HiveBoard Docs Search the docs… Ctrl K Get HiveBoard
Browse the help centre
  1. Help centre
  2. Job control

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.

2 min read HiveBoard 0.1.7 Updated

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 on for a server, the 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: 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.

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

2 quick questions on this page. Nothing is sent anywhere.

  1. Which of these can Delete in the Files tab never remove?

    • The job's own folder
    • A subfolder inside the job's folder
    • A large output file
    • Several files at once
    Show the answer

    The job's own folder 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
    • Yes, from HiveBoard's trash
    • Yes, from a copy HiveBoard keeps on your computer
    • Only if it was a folder
    Show the answer

    No — it is removed with rm -rf, without a backup HiveBoard keeps no copy; download anything you may need before deleting it.

Try it in the app

On your own computer, with HiveBoard open. Tick them off as you go.

Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.

↑ ↓ to moveEnter to openEsc to close