Adding a type for delete_previous