changed truncate to delete

Fix for the issue - #1869