AsklingDocs

Askling never deletes

What it does

Askling never deletes anything in your HubSpot. It has no way to delete a record there.

  • Records: it cannot delete or archive a company, contact, deal or task.
  • Properties: it cannot delete or archive a property or property group. It only creates its own company properties (named askling_) for enrichment and adds missing options to them. See Create properties in HubSpot.
  • Workflows: it never changes, switches on, switches off or deletes one. Create the fix as a draft only adds a new copy that is off. See The workflow audit.
  • Reports and dashboards: it never archives, deletes or changes one. Archive in HubSpot only opens the report in HubSpot. See Unused HubSpot reports.
  • Two links, not a record: the Undo of a link between a deal and a company removes that one link. The Undo of a merge moves linked records back to the company that comes back. Each record gets a link to the new company, and its link to the kept company is removed unless it was linked to both before. The records and the companies stay.

What you do yourself in HubSpot

  • A property you mark Not needed is only a mark in Askling. You archive it in HubSpot. See Properties with the same purpose.
  • You delete a draft workflow you do not want.
  • You archive an unused report. HubSpot can restore it for 90 days.

Segments

Askling can take a company out of a segment it made itself, and only a company it put there. The company stays in HubSpot. See Slack owner lists.

Where it is enforced

  • One gate for HubSpot requests. It refuses every request that deletes or archives, except those two link removals, each for one record and one company. It also refuses a GDPR delete, a property batch, a batch create and every merge outside the one merge path. It refuses before anything is sent.
  • No delete change type. The list of change types a suggestion can have has no delete.
  • Emptying a field is separate. It is off for every check by default and needs a person.
  • Tests. Automated tests fail the build if any other code path can send such a request.

How to use it

You need first

  • Profile: any. Nothing to set up. Yours shows beside your name in the sidebar footer.

See for yourself

  1. Open Settings, then Audit log.
  2. Read the Action column. Every write is a value written, a link, a created item or a revert.

Check it worked: no row says deleted or archived. See the audit log.

What it does not do

  • It does not remove a domain. Cleaning https://www.Acme.com/ to acme.com replaces the value. It does not empty the field.
  • When you leave, Askling removes its own copy of your data after 30 days. That is not HubSpot. See Delete your workspace.
  • It does not stop you or your colleagues from deleting things in HubSpot. Askling has no say there.
  • It does not empty a field except as an Undo, to restore a field that was empty before Askling wrote it.
  • It does not merge companies on its own. A merge happens only through the one merge path on the Duplicates page. An admin approves the pair first and a snapshot is saved. HubSpot cannot split a merged company, so Askling builds it again from the snapshot if an admin clicks Undo, for 90 days. See How a merge works and Undo a merge.

Why it works this way

HubSpot's write permissions (crm.objects.companies.write, crm.objects.deals.write, crm.objects.contacts.write, and crm.schemas.companies.write for properties) allow deleting as well as changing. A permission alone cannot be narrowed, so Askling blocks delete in its own code, in more than one place. One bug must not be enough to lose a record.

Common questions

Can Askling delete duplicates? No, a merge is not a delete: an admin approves each pair, and Askling saves a snapshot of both companies first. Undo under Done builds the company again for 90 days. See Undo a merge.

Can Askling delete contacts? No. It does not even change contacts.

What if a revert would empty a field? That is allowed only when the field was empty before Askling wrote. It restores the original state.

Does Askling archive old records? No.

Can Askling delete a property it created? No. To remove an Askling property, archive it yourself in HubSpot under Settings, Properties; the audit log says so next to each property it created.

Could a bug delete something? The request would be refused before it is sent. The static checks run on every build.

How do I know what was written? The audit log lists every write with its before and after.

When something goes wrong

SymptomCauseWhat to do
forbidden_request in a resultA request type that is never allowed was attemptedReport it with the code. See forbidden_request
clear_not_allowedA change would empty a field and that is switched offNothing was changed. See clear_not_allowed