A staff member deletes a completed job. It disappears from the list, but its attachment still opens from an old link. Another copy remains in a reporting system. Was the deletion successful?

Before accepting a business application's Delete feature, agree what it removes, what it deliberately retains, who can perform it and what evidence proves completion within that scope. A disappearing row is not enough evidence for a promise covering several systems.

This business app deletion checklist provides a deletion-scope worksheet and a fictional work-order example. It is a planning framework, not a tested implementation, security audit or legal determination. Every acceptance scenario below is Not run.

Define archive, disable and delete before choosing a button

Ask the supplier to replace “supports deletion” with a specific statement. For example: “An authorized administrator can request removal of an eligible draft job, its private attachments and its searchable copy. The request shows pending until those agreed live copies are removed.”

That is a proposed requirement, not a description of an existing product. Decide whether your actual need is:

  • Archive: keep the record but take it out of ordinary working views.
  • Disable: stop an account or item from being used without promising removal of its records.
  • Delete from agreed live systems: remove specified records and files, with exceptions stated.
  • Remove retained copies on a separate schedule: handle backups, exports and other retained material under a documented policy.

Use labels that match the chosen behavior. If the feature only hides a record, say Archive rather than implying that every copy has gone. If recovery is possible, say who may restore the record and until when.

Map linked records and database deletion rules

A work order may have line items, attachments, assignments and references from an invoice. Write down what should happen to each relationship before deciding how the database should implement it.

PostgreSQL documents several foreign-key deletion actions. RESTRICT prevents deletion of a referenced row while referencing rows remain; CASCADE automatically deletes referencing rows. SET NULL and SET DEFAULT change referencing values but must still satisfy the applicable constraints.[1] These are implementation choices with different consequences, not interchangeable ways to make an error disappear.

For the fictional app, the proposed policy might allow deletion of draft-job line items but block deletion when a separately retained invoice still references the job. A refusal can be the correct result. Ask for a useful explanation of the dependency rather than a workaround that silently removes more records.

Do not assume that a database cascade also deletes files in object storage or records held by another service. Require the supplier to identify each boundary and explain its separate cleanup behavior. This is a scoping recommendation; the actual application architecture must be checked.

For each attachment store, ask whether Delete removes a reference, hides the current object, removes a particular version or removes every version covered by the agreed policy.

Amazon S3 illustrates why those distinctions matter. In a versioning-enabled bucket, a simple DELETE request without a version ID inserts a delete marker rather than permanently removing the object. The object can appear deleted while earlier versions remain.[2] That behavior is specific to the documented S3 configuration; it is not a claim about every storage service or every bucket setting.

A suitable acceptance question is therefore not just “Does the download button disappear?” Ask the developer to show the agreed outcome for a previously issued link and, where applicable, retained object versions. Use synthetic files. Record which storage configuration was examined, what access path was used and what remains outside the test. A failed download shows the outcome of that access attempt; it does not, by itself, establish that the stored content was removed.

Specify who may request deletion

Agree who may request, cancel and inspect a deletion, and whether a second decision is needed for high-impact removals. Hiding the button is not the whole permission rule.

OWASP recommends denying access by default and validating permissions on every request.[3] Apply that principle to the deletion request itself and to any later access to retained records or attachments. A user in one organization must not gain deletion authority over another organization's record merely by changing an identifier; include that as a proposed negative acceptance case, not an assumed implementation result.

Keep deletion permission separate from viewing permission. Someone who can read a job need not be allowed to remove it. Likewise, the person investigating a failed cleanup need not receive unrestricted access to the underlying private documents.

Distinguish requested, incomplete and completed deletion

If the agreed scope crosses services, define a lifecycle that staff can understand. A proposed sequence is Requested, In progress, Completed within scope, or Needs attention. Use different wording if it suits the product, but preserve the distinction between accepting a request and finishing its work.

For each step, record the target, observed result and next responsible owner. If the database row is removed but attachment cleanup fails, do not display an unqualified “Everything deleted.” Explain the remaining item without exposing sensitive content, and provide a supported way to investigate or resume that same request.

For retry behavior, use the separate safe-retries planning guide. This worksheet defines the deletion boundary; it does not substitute for a recovery design.

Fill out a deletion-scope worksheet

The following entries are fictional proposed decisions, not observed application behavior. For each row, add a named decision owner and an agreed completion target. Keep exceptions visible rather than silently treating them as completed cleanup.

Deletion-scope worksheet — fictional proposed decisions, not tested
Copy or relationshipProposed outcomeEvidence to requestUnresolved decision
Draft job and owned line itemsRemove eligible records togetherBefore/after synthetic identifiers and relationship checkWhich references prevent deletion?
Private attachment and covered versionsRemove the agreed stored content, not only its screen linkStorage-side observation plus old-link access checkAre versions retained, and under what rule?
Search or reporting copyRemove or update the derived copy within the agreed targetCheck the same synthetic identifier in that systemWho owns failed downstream cleanup?
Backups and existing exportsFollow an explicitly separate retention boundaryDocumented retention owner and restore/export handlingWhat remains, who can access it, and when does it expire?

Do not promise immediate removal from backups or independent exports unless the responsible owner can substantiate it. Establish the applicable business and legal retention requirements with the appropriate qualified people; this article does not decide them. If records must remain, state the exception plainly rather than calling it complete erasure.

A restore plan also needs to address deleted records: ask what prevents an older restored dataset from quietly undoing the agreed deletion state. See the restore-test checklist for the broader recovery boundary. It does not establish that a particular deletion policy survives restoration.

Request five deletion acceptance demonstrations

Use a fictional organization, accounts and files. These proposed scenarios are all Not run:

  • Authorized deletion: remove an eligible draft job; inspect each live copy included in the worksheet rather than only the list screen.
  • Linked-record refusal: attempt deletion when a protected reference exists; verify the agreed refusal and unchanged related records.
  • Unauthorized request: try a read-only account and another organization's synthetic identifier; verify rejection and no deletion.
  • Interrupted cleanup: make the attachment step unavailable; verify that the interface reports an incomplete result and identifies the supported next step.
  • Retained-copy review: inspect the stated version, backup and export exceptions, then document what was and was not demonstrated. A policy document alone is not evidence of physical removal.

For each case, record application version, environment, account role, storage settings, expected behavior, actual observations and unresolved findings. Ask the developer to run and review the cases before using them as acceptance evidence. A successful demonstration covers its stated conditions, not every future deletion.

Put the deletion boundary in the buying brief

A useful deletion brief names the eligible records, related copies, permission rules, retention exceptions, completion states and evidence owner. That gives both sides a concrete requirement to discuss before implementation.

If you are planning a web application, use the CodeDrawn Digital project brief to describe what must disappear and what must remain. The helper lets you request an email draft; it does not confirm that an email application opened, a message was sent or an inquiry was received. Include synthetic examples rather than private records.

Sources

Primary-source documentation checked on 27 November 2026. These checks verify the cited documentation, not an application's deletion behavior.

[1] https://www.postgresql.org/docs/current/ddl-constraints.html — PostgreSQL Global Development Group — Constraints

[2] https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html — Amazon Web Services — Deleting object versions

[3] https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html — OWASP — Authorization Cheat Sheet