Skip to main content

Storage and cleanup

The What takes up disk space group on the Server tab of the Qubix settings window, below the host resources. It shows how much room the stores that grow on their own occupy, lets you set the retention period for each of them and start the cleanup without waiting for the daily one. The info mark next to the title of the group says: How much space the stores that grow on their own take up. For a store with a retention period, zero means keep forever: until a period is set, nothing is deleted from it. A store with no retention field is always cleaned up — what exactly it removes is written in its own note. The note under the list says: Zero means keep forever. Stores without a retention field are always cleaned up: they hold what the owner has already deleted, and their cleanup leaves live records alone. The one exception is the version history of QubDrive pages: it also thins out the versions of live pages by a fixed rule.

Administrators only

The Server tab is shown to a role that is allowed to manage the system, but the storage group on it only to an administrator: for everyone else it is not on the tab at all. Both actions behind it — the measurement and the cleanup — are open to an administrator only.

What a store card shows​

Every store is one card. On its left is the store's name and a note saying exactly what the cleanup removes; on its right, the space it occupies on disk and the number of records (… records, or empty when the store holds nothing). Next to the name stands an info mark, and under the name a one-line note: both are listed in the section Notes on the cards below. If a store could not be measured, a refusal appears in place of the numbers; if no store at all could be measured, a general refusal with the Retry button appears above the list.

Stores are measured differently, and this is worth knowing. Creative files, Britva rule firing log, Version history of QubDrive pages, Action journal, Server records of pages and Push notification events are measured whole — an entire column or an entire table — and for those the card shows the compressed size on disk: the database compresses what it keeps, so the space occupied is noticeably smaller than the data laid end to end. Every other store is only a part of a live table, and for a part of a table the database keeps no on-disk size at all. There the card shows the size of the data or of the files themselves, and it comes out somewhat larger than the space actually taken. This error is deliberate and one-sided: the card may name too much, but it will never show as freed what has not been freed.

Retention period​

Some stores carry a Keep for, days: field; others do not, and that difference is deliberate.

  • A store with the field. Records older than the number of days entered are removed. Zero means keep forever — until a period is set, nothing at all is deleted from the store. Server records of pages come with 30 days already set. Action journal comes with 365 days already set. The unit next to the field reads days, and the tip of the field says anything older is cleaned up while a period is set and zero — keep forever, delete nothing while it is zero. The field is saved when you leave it; a value that is not a whole number of 0 or more is not sent, and the field returns to what was stored.
  • A store without the field. It is always cleaned, and the age of the records has nothing to do with it: what it holds is the leftovers of records a person has already deleted. Such a leftover stops being needed the moment the record itself is deleted, not when it gets old. The exceptions are Version history of QubDrive pages, which besides what was deleted thins out the versions of live pages by a fixed rule, and Container logs of the box, which keeps the last 30 days — see the table below.

When you set a period for the first time or shorten it, Qubix asks for confirmation before saving and states the cost: how many records the next cleanup will delete. The cleanup takes what has piled up earlier too, not only what is new. If the count could not be made, the question is asked anyway — without numbers. If the period is lengthened, set back to zero, or no record falls under deletion, there is no question. Declining the confirmation keeps the previous period.

StoreRetention periodWhat the cleanup removes
Creative filesyesThe image or video file of creatives older than the period, and with it the search-by-meaning vectors. The card and the dimensions stay, but the creative stops being found by search by meaning; what is erased usually cannot be brought back. The period is counted from when the file was first downloaded, not from when it was last shown.
Britva rule firing logyesFiring entries older than the period. The last entry of each standing hold is always kept, so neither the automation nor the "why is this ad paused" explanation is affected.
Server records of pagesyes, 30 days by defaultWhat the server wrote itself when it served a page: cloak white pages, crawler visits and pages it rendered. Whole weeks are removed once their newest record is older than the period, so a record lives up to a week past it. With them the visitor card loses its white pages and the visits the server recorded.
Push notification eventsyesShows, clicks and dismissals of push notifications, subscriptions and answers to the permission prompt older than the period. Send records — sent, failed, expired — are always kept: by them a mailing knows whom a push has already reached.
Action journalyes, 365 days by defaultEntries of who did what in the panel, through the AI assistant, MCP and scripts, and what the system did by itself, older than the period. On its card the store is described as Who did what and when in the panel, the mobile app, the assistant, MCP and scripts and its note reads The journal of actions by people and by the system. Entries older than the retention period are removed by the daily storage cleanup.
Bodies of deleted attachmentsnoThe contents of attachments their owners have already deleted. Active attachments are left alone.
Files of deleted landing pagesnoPages, images and stylesheets of websites that have already been deleted, together with their edit history. Active websites are left alone.
Version history of QubDrive pagesnoEarlier versions of Drive pages. Versions of deleted pages are removed in full; versions of active pages are thinned out — all from the last week, one per day up to a month, one per month after that.
Unsent assistant pictures and videosnoPictures attached in the AI assistant's chat that never went out with a question, a day after they were attached. Pictures sent with a question stay as long as the chat's messages do. While the server has no assistant messages at all, nothing is removed: that is how a server restored from a backup before its chats looks.
Container logs of the boxnoThe log lines that all the parts of this installation write while they work. The log is kept for 30 days, then the oldest day goes by itself.

Notes on the cards​

Under the name of a store its card carries a one-line note, and next to the name stands an info mark with the full explanation:

  • Creative files — Ad images and videos. The file and its analysis are erased — the card stays. The info mark says: Ad images and videos. After the retention period the creative's file and its semantic-search vectors are erased; the card and the dimensions remain, and in campaigns, offers, networks and ads the creative is shown by its fingerprint. The period runs from the first download of the file, so ads that run longer lose their picture too. The store is shared: what is erased disappears for everyone, and the original Facebook links stop working over time.
  • Britva rule firing log — When rules paused ads and lifted the pauses. The last entry of each standing hold is kept. The info mark says: The history of rules pausing ads and lifting those pauses. Entries older than the retention period are removed: the rule's own firing history and the combined log with its export get shorter. The last entry for each standing hold is always kept, however old it is — otherwise the automation would stop seeing that an ad must be held paused, and could lift the pause itself. For the same reason the “why is this ad paused” explanation on the ad card does not change either: it shows precisely the last entry for each hold. So the period can be shortened without risk either to how the rules work or to that explanation — only the history itself gets shorter.
  • Server records of pages — White pages, crawler visits and pages the server rendered. Whole weeks older than the period go. The info mark says: What the server wrote itself when it served a page: cloak white pages, crawler visits and pages it rendered, redirects aside. Whole weeks older than the retention period are removed, so a record lives up to a week past the period. With them the visitor card loses its white pages and the visits the server recorded.
  • Push notification events — Shows, clicks, subscriptions and prompt answers. Send records are always kept. The info mark says: Shows, clicks and dismissals of push notifications, subscriptions and answers to the permission prompt. Entries older than the retention period are removed: the Push window, the visitor card and the funnel show fewer of them. Send records — sent, failed, expired — are always kept: by them a mailing knows whom a push has already reached.
  • Bodies of deleted attachments — The owner deleted the record, the file stayed behind — cleanup finishes the job. The info mark says: The contents of attachments their owners have already deleted: the record itself is gone from the conversation and from the cards, but the file stayed behind. There is no retention period here — we simply finish what the person asked for. Live attachments and service records are left alone.
  • Files of deleted landing pages — The landing page was removed from the list, its pages and stylesheets stayed behind. The info mark says: Pages, images and stylesheets of landing pages that have already been deleted: the landing page itself is gone from the list, but its files and their whole edit history stayed behind. Note: an admin following a direct link can still open such a landing page in the editor today, and after the cleanup its pages will be empty there too - the content cannot be restored. There is no retention period here, and that matters: almost every file has only one version, and that version is exactly what a visitor sees — so cleaning by age would erase live landing pages. Active landing pages are left alone.
  • Version history of QubDrive pages — Earlier versions of QubDrive pages. Deleted pages lose all versions, live ones are thinned out. The info mark says: Earlier versions of QubDrive pages. They do not appear only when a person wants them to. A version is taken when they save the page themselves — by pressing Ctrl/Cmd+S or by confirming a rename; when they have made no edits for about three minutes; when they leave a page after editing it; when someone else's write lands on top of their unsaved text; and when they roll back to an earlier version. So on a page that is being worked on, the history grows by itself. A plain autosave does not become a separate version. The figure here is the size of the whole history — that is how you can watch it grow; after a cleanup it will not move at once, and on a very small history it may even go up. The versions of deleted pages are removed in full. The versions of live pages are thinned out: every version from the last week is kept, one per day from a week to a month old, and one per month beyond that — always the latest of that day or month. The rule is the same for every page and has no period to set.
  • Unsent assistant pictures and videos — Pictures and videos attached in the assistant chat and never sent. Removed a day after they were attached. The info mark says: Pictures and videos attached in the AI assistant's chat that never went out with a question: removed with the cross, or left behind when the panel was closed. Removed a day after they were attached. Those sent with a question are not touched: they stay as long as the chat's messages do. While the server has no assistant messages at all, nothing is removed: that is how a server restored from a backup before its chats looks. The rule has no period to set.
  • Container logs of the box — What the box containers printed in the last 30 days; older days go by themselves. The info mark says: What the Qubix server, the chat server, the media server, the web server and the other containers of this installation printed. The log stays when an update recreates a container. It is kept for 30 days, then the oldest day goes by itself; there is nothing to set here. At most 128 MiB a day are written for all containers together and 64 MiB for one of them; what goes beyond is not written, and a line in the log says how many lines and bytes were skipped. Successful requests of the web server and of the server itself are not written at all; secrets are masked.

Two more stores belong to calls and tasks:

  • Call recordings — Files of recorded calls and meetings. A recording running right now is left alone. The info mark says: The files of recorded calls and meetings. For recordings older than the retention period both the file and its entry in the call's list of recordings are removed, and neither can be restored. The age is counted from when the recording started. A recording that is running right now is left alone. While the period is zero, recordings are kept for ever.
  • Change history of deleted tasks — The task was deleted, its change history stayed behind. The info mark says: Records of who changed what in a task that has already been deleted for good, after the trash. A regular employee can no longer see them — the card went away with the task — yet they take up space and take part in the permission check every time a history is opened. Note: an admin following a direct link can still open such a history today, and after the cleanup it will be gone for them too. There is no retention period here: such a record stops being needed not with age, but the moment the task leaves the trash for good. The history of live tasks is left alone.
A cleanup cannot be undone

Everything in the table is deleted for good — there is no trash to bring it back from. Before shortening a period, read the note on that store's card: it says precisely what will be deleted and what will remain.

Running the cleanup by hand​

The cleanup runs automatically once a day. The Clean up now button at the bottom of the group is for when you do not want to wait; the info mark next to it says: Cleanup also runs on its own, once a day. The button is for when you don't want to wait. Freed space will not show up in the numbers below immediately: the database performs such deletions in its own queue.

Pressing it starts the "Storage cleanup" background job — the very same one the daily run performs, so there is nothing separate to configure. While the job is working, the button reads Cleaning up…, and the sizes above are re-measured as soon as it finishes. If a cleanup is already running when you open the tab, the button shows this right away and waits for the end.

The button is unavailable while a retention period is being saved. That is not cosmetic: the job reads the periods as they stand when it starts, so starting it at the same moment as the save would mean cleaning by the old, shorter period — and erasing exactly the bytes you had just decided to keep longer.

If the cleanup of some store had to be held back to keep the data safe, a red strip Cleanup cancelled to keep your data safe appears under the button, and under it the reason for each such store. The strip is also shown when you simply open the tab, without pressing the button and without waiting for the daily run.

Freed space does not appear in the numbers at once

The database performs deletions of this kind in a queue of its own. The figures above may stay as they were for a while after a successful cleanup, and on a very small store they may even go up briefly.

Drive files with unconfirmed contents​

Below the stores, a QubDrive files whose contents are not confirmed as theirs card may appear. The storage remembers which Drive item each uploaded file belongs to, and the card lists the items for which this link is lost or leads to another item. The note on the card says: The storage remembers which QubDrive item every uploaded file belongs to. For the items below that link is missing or points at another item, so QubDrive refuses to hand out or delete their contents — the files themselves are left untouched. Sort these out by hand: nothing listed here is changed or removed on its own. Drive refuses to hand out or delete their contents, but the files themselves are intact. The cleanup does not touch them, and nothing listed is fixed or deleted by itself — sort out such items by hand.

Each row carries the item's name, its identifier, the owner's login, the file size and the reason: Owner not established or Contents belong to another item.

The card appears only when there is something to show: on a healthy server it is absent. If the report could not be put together, the card says so in a sentence of its own and offers the Retry button; while the repeat request is running, the card stays in place together with the button.

What's next​