Apply the deletion code too

Signed-off-by: Suki <suki@missallsunday.com>