Skip to content
Пилотная фаза – пока не коммерческое предложение. Первые 500 пользователей работают бесплатно и дают нам обратную связь. Первый тарифный раунд стартует в мае 2027
Firmspace
Назад в блог

The Delete Key That Means Three Things: Storage, Drive, and the File the Assistant Cannot Open

The Documents section of Firmspace CRM has three tabs: the firm's own storage, Google Drive and OneDrive. One delete key sits on all three, but it means three different things. The tab is not cosmetic; it tells you who owns the file and what the CRM is allowed to do with it.

The rule is simple once you see it. A file uploaded to the CRM is a copy in our storage. A Google document created from the CRM lives on the user's Drive, and the CRM only knows its identifier and address. A file imported from Drive or OneDrive stays where it was, and the CRM keeps a record that points at it. An internal field decides which tab a record appears in.

Uploading has hard limits. One file may be 4 MB, and the request ceiling is a little higher. Executables and scripts are rejected by extension before anything is stored. If the plan quota is exhausted, the answer is 413 with the code plan_limit; if the storage is not configured at all, the section answers 503 instead of pretending.

Names are cleaned rather than trusted. Document and folder names lose control characters and angle brackets and are cut at 100 characters, file names at 120, with characters that are illegal in a path replaced by an underscore. A firm may have up to 500 folders, a folder name is limited to 80 characters, and two folders with the same name in the same parent are rejected with 409.

Quota is counted honestly. Only files that actually sit in our storage count towards the plan; Google documents and imported Drive or OneDrive files take space at their provider, not here. That is why the volume line can stay low while the Drive tab shows gigabytes.

Archive is a flag, not a folder. Any record can be archived and restored, the default view shows only active items, and archiving changes nothing at the provider: no file is moved, renamed or sent to a bin. The file continues to occupy its quota and remains visible under the archived filter.

Archiving also changes what the AI assistant can find. Its file search looks only at uploaded files and only at records that are not archived. A PDF that was archived disappears from the assistant's reach while staying in the CRM for people. That is a practical way to keep a document out of chat answers without deleting it.

Some documents the assistant cannot open at all. Google Docs, Sheets and Slides are not part of its file search. A PDF that lives on Drive or OneDrive can be found by name, but there is no copy in our storage, and the text reader needs that copy, so it cannot return the text. And the reader accepts only PDF with a text layer: a scan answers that no text was found, an image answers that only PDF can be read.

Deleting a Google document that the CRM created sends it to the trash on Drive and removes the record. The Drive call is best effort: if Google refuses, the record still disappears, and the file may remain on the Drive unnoticed. This is the one case where the CRM and the provider can disagree.

Deleting an uploaded file removes the object from our storage and the record from the list. A storage error is written to the log, but the record is removed anyway, so a failed object deletion can leave a file that nobody sees.

Deleting an imported file removes only the record. The file itself stays in the user's Drive or OneDrive, untouched, because the application never had the right to delete it. Removing the record is therefore closer to detaching than to deleting.

Renaming and moving follow the same ownership logic. For a Google document created by the CRM, a new name and folder are pushed to Drive. For an imported file, the new name and folder exist only in the CRM: the sync compares the Drive name with the stored one and does not overwrite the CRM name on its own.

Synchronisation runs when the section is refreshed. Names and modification dates come from Drive; a file moved to the Drive bin is removed from the CRM list. If the parent folder was deleted on Drive, creating the next Google document inside it fails once, the CRM forgets the stale folder identifier and creates the folder again.

Disconnecting an account is not a deletion. Records that point at Google stay in the list, and the interface warns how many there are, because their files are still at Google and the CRM can no longer open them. OneDrive records behave the same way.

A short rule of thumb. Archive when the file should disappear from the assistant and from the default list but stay available. Delete when the record should leave the CRM, and check the tab first: in the first tab the file goes with it, in the other two it usually does not. Disconnect last, and never as a way to clean up.

What this text does not contain: retention periods, restore of deleted uploads, and version history. Those either do not exist in the code or need access we do not have, so they are left out rather than guessed.

Автоматизируем ваш следующий процесс вместе.

Опишите повторяющийся рабочий процесс. Мы вместе проверим, можно ли его разумно автоматизировать.