alas --remove-empty-days will remove past days that don’t have any events or tasks from the plan.
alas --remove-empty-days
Example:
alas --remove-empty-days plan.md