Skip to contents

Assumes that the directory for the year has the relative path "./YYYY" and the directory for the day has the relative path "./YYYY/day/DD", where YYYY and DD are the values of year and day. This will be the case if the post was created using aoc_new_day(). If the directory for the day or year has a corresponding directory in "./_freeze", that will also be deleted. Additionally, for aoc_delete_year(), the listing page ./YYYY.qmd (where YYYY is the value of year) will be deleted.

Usage

aoc_delete_day(day, year = NULL)

aoc_delete_year(year = NULL)

Arguments

day

An integer between 1 and 25

year

An integer representing the year, from 2015 to the current year. Defaults to the current year.

Value

The path of the day that was deleted (invisibly)

Examples

if (FALSE) aoc_delete_day(1, 2022)
if (FALSE) aoc_delete_year(2022)