Fix bug that delete flag at bucket was ignored