Fixed Delete on FoldersController.
Added flushing when saving/updating/deleting.
Fix retry-errors.