smarty delete