Delete bucket listener config file from disk (#3016)

This commit is contained in:
Aditya Manthramurthy
2016-10-20 16:09:19 -07:00
committed by Harshavardhana
parent c21ac80268
commit 8876e0a80a
5 changed files with 34 additions and 20 deletions

View File

@@ -562,10 +562,13 @@ func (api objectAPIHandlers) DeleteBucketHandler(w http.ResponseWriter, r *http.
}
// Delete bucket access policy, if present - ignore any errors.
removeBucketPolicy(bucket, objectAPI)
_ = removeBucketPolicy(bucket, objectAPI)
// Delete notification config, if present - ignore any errors.
removeNotificationConfig(bucket, objectAPI)
_ = removeNotificationConfig(bucket, objectAPI)
// Delete listener config, if present - ignore any errors.
_ = removeListenerConfig(bucket, objectAPI)
// Write success response.
writeSuccessNoContent(w)