List buckets returning deleted buckets bug fix

Remove bucket from buckets array when deleting a bucket. This fixes a bug where a deleted bucket will still be returned in a list buckets request.