Skip to main content

What to record before cleaning a development Mac

Start with one generated artifact and separate storage from load

Published:
MMiyako de IT Editorial Team
MacStorageDevelopment environmentDevelopment logObservation
Headline "Archived work still takes space". A conceptual cover showing one archive area that holds source (keep) and node_modules and .next (regenerable generated files). Not a screenshot or measured proportions.

Before cleaning a development Mac, narrow the target to one item and record capacity, memory and CPU separately before and after; that lets you check afterward what actually helped. This article shows that order, using Netsujo's records.

A limited cleanup on Netsujo's development MacBook Pro on October 23, 2026 increased whole-volume free space from 56.2 to 165.5 GiB. Roughly 34 hours later, 158 GiB remained available. On October 25, the record judged the disk-capacity recovery condition met; final closure was left to the owner.

Not every preceding cleanup resolved the capacity problem, and increased free space did not establish that every resource issue had ended. The records include the first single-target removal, a successful package-manager cleanup while free space fell within the same observation window, and a next-day decision to withhold acceptance.

The transferable lesson for an individual developer or part-time maintainer is the sequence. Write down the symptom, establish the purpose of one target, and measure the same things before and after an operation.

The first target was a roughly 500 MiB .next directory

A record at October 11, 20:26 Japan time describes a small trial on one .next directory remaining from a completed article task. Next.js generates this area during builds and related work. Even regenerable output may be used by a running development server, making deletion disruptive.

For this target, the record established that the source task had been merged, the parent source had no unshared changes, and no active process, working directory, open file, lock, or similar reference to the target was observed. After removal, the target path was absent and the parent retained the same HEAD and clean state. HEAD identifies the source commit; clean means no uncommitted changes.

Recorded field for this targetValue or result
Estimated target allocated bytes524,935,168 bytes, approximately 500.62 MiB
Whole-volume free before, within the operation31,989,432,320 bytes
Whole-volume free after, within the operation32,517,427,200 bytes
Whole-volume free-space difference+527,994,880 bytes, approximately 503.54 MiB
Target readbackPath absent
Parent sourceHEAD unchanged; clean state retained
Physical recovery attributable solely to the targetRetained as unknown

The target estimate differs slightly from the free-space difference. APFS sharing and concurrent I/O may influence the latter, so it was not attributed entirely to that target. The initial operation stopped after one target rather than automatically consuming the rest of its allowance.

A tool reported 386.2 MB cleaned while free space fell within the same observation window

On the evening of October 14, a limited cleanup used Homebrew's native facilities. Homebrew manages development tools and packages. The process first inspected candidates with a dry run, checked related work and file references, and performed the cleanup once. The tool reported approximately 386.2 MB freed.

A separate subsequent check confirmed that old bundled-Ruby directories and selected temporary areas were absent. The bounded operation had succeeded.

Within the roughly ten-minute observation window from 23:22 to 23:32 Japan time on October 14, however, Pro free space fell from 16,639,400 KiB to 13,825,832 KiB, ending at approximately 13.2 GiB. A check at 23:50 the same night showed free space back at 18,924,244 KiB. This was a whole-volume change that could include other writes. No individual process was established as its cause, and the capacity incident remained unresolved.

A successful tool message therefore does not settle whether the original symptom has improved. Before repeatedly removing small caches, investigate the areas dominating current storage use. That change in priority does not remove the need to establish each target's purpose and retention requirements.

Explore upcoming events: dates, venues and participation requirements →

Archived workspaces still contained generated artifacts

The October 23 record measured the archive area at 273 GiB. Its node_modules and .next scope comprised 262 directories totaling 120.8 GiB. node_modules contains installed dependencies. Separate workspaces can each accumulate their own dependencies and build output.

Moving completed work elsewhere on the same volume leaves those generated files consuming space. This cleanup was limited to the two artifact types classified as regenerable inside the archive area. It produced the 56.2-to-165.5 GiB free-space observation. Source, evidence, secrets, active workspaces, user data, and browser data were protected. The large cleanup did not terminate processes or restart the machine.

The target-side total of 120.8 GiB differs from the whole-volume difference of 109.3 GiB. Complete individual check evidence at the level of the October 11 trial has not been reconciled for every one of the 262 targets. Detailed verification of one target must not be retroactively presented as verification of all later targets.

Applying the method elsewhere requires checking the producer, active references, unsaved or unshared changes, and regeneration inputs for each target. The name .next alone cannot establish that removal is safe.

The next day, 159 GiB free still did not immediately mean acceptance

Observation, Japan timeFree spaceObservation and decision at that time
Immediately after October 23 cleanup165.5 GiBIncreased capacity observed
October 24, 11:02167 GiBIntermediate check; no major capacity or swap deterioration
October 24, 23:35159 GiBSwap use increased; acceptance withheld at that point
October 25, 09:28158 GiBI/O reobserved; judged to meet the disk-capacity recovery condition

Swap places some memory contents on storage. Its increasing usage prevented a claim that every issue was complete merely because free space had increased.

Swap use was higher again on the morning of October 25. But a 60-second observation recorded five pages of swapout, approximately 80 KiB, and approximately 1,000 pages of swapin, or 16 MiB. Those conversions use the recorded host's page size. Sustained large swapout was not observed during that window. With storage recovery maintained, the judgment was limited to disk capacity.

Capacity, memory pressure, and application responsiveness need separate checks. No same-workload processing-speed comparison was performed here. There is no percentage improvement for temperature or perceived responsiveness, and this one machine's capacity recovery is not extrapolated to performance on the M3 or M1 machines.

Begin with a symptom note before any deletion

The following is a reader procedure, separate from adding new results to Netsujo's historical record.

First write down whether the problem is insufficient room for a build, slow browser interaction, or pressure during parallel tests. The first places to look are: storage (free space on the target volume) if a build lacks room, memory (pressure and swap I/O) if the browser is slow, and CPU (load trends and active tasks) if parallel tests feel heavy. These are parallel views, not a sequence, and not a diagnosis.

Diagram of the first metric to check per symptom: build lacks room → storage (free space on the volume); browser is slow → memory (pressure and swap I/O); parallel tests feel heavy → CPU (load trends). The three are parallel, not a sequence
Diagram of the first metric to check per symptom: build lacks room → storage (free space on the volume); browser is slow → memory (pressure and swap I/O); parallel tests feel heavy → CPU (load trends). The three are parallel, not a sequence

Figure 1. Separate storage, memory, and CPU. Swap usage alone does not establish responsiveness. Suggested diagnostics, not newly executed checks

Use Apple's explanation of Activity Monitor memory fields to understand the observations. Avoid diagnosing responsiveness or a cause from a single free-memory percentage or swap-used value.

For a large area, establish four things:

1. Producer: which project and operation created it?

2. Current use: do a development server, test, or another task reference it?

3. Retained inputs: are source, lockfile, configuration, and required data preserved?

4. Regeneration cost: is cleanup now worth the time and network use required to rebuild it?

Retain uncertain targets. Inspection itself can add load, so start with a scope related to the symptom rather than scanning the entire disk at once. Once a safe, bounded target has been identified, do not stop at checking path absence: verify parent source, required services, and comparable before-and-after measurements.

Order of steps: 1 check, 2 set the scope, 3 act small and recheck
Order of steps: 1 check, 2 set the scope, 3 act small and recheck

Figure 2. Before applying cleanup in your environment. A directory name is not deletion authority. Transfer conditions; not proof for all 262 targets

Bring the operation history and unanswered questions to a discussion

Note fieldWhat to keep
Symptom and timeWhich operation causes difficulty, and when it was observed
Target and protectionsThe candidate, work that must continue, and retained inputs
OperationWhat actually ran; explicitly record no change if inspection-only
VerificationTarget state, parent source, and the same capacity or load indicators
LimitsConcurrent work, unmeasured speed or temperature, and unknown references

This is a blank template for your own observations. A past operation or a target you chose to retain can both support a discussion. Remove names, internal paths, secrets, and customer information before sharing.

Check the MiyakodeIT event information for a suitable session and prepare the note while working on your own project. This does not promise an event cleanup service. It offers a practical topic for sharing what you inspected and why you held uncertain targets.

Scope of the record

The article uses private company operating records for October 11–25, 2026; the original internal records are not public. Individual operation windows and whole-volume changes remain separate, and recovery amounts from different dates are not added together. The observations are historical. Current machine state and long-term recurrence prevention are outside this verification scope.

Source data

The figures cited in this article are based on primary data in the Miyako de IT annual statistics report. It publishes yearly event counts, venue distribution, and event-format data.

Event artwork published by the organizer (Online)Registration open

Dec 4 (Fri)

Original event title

Time20:00–21:30 JST
AreaOnline

LanguageLanguage support not confirmed