Use truncate instead of delete. Fixes #153