New Feature: Implement S3 file removal method and corresponding tests for wmill python package#8216
Merged
rubenfiszel merged 11 commits intowindmill-labs:mainfrom Mar 5, 2026
Merged
Conversation
Add method to permanently delete a file from S3 bucket.
Added a test case to verify removal of a file from S3.
Added a function to permanently delete a file from the S3 bucket.
Contributor
|
rename s3_file -> s3_object for consistency |
rubenfiszel
requested changes
Mar 4, 2026
Contributor
rubenfiszel
left a comment
There was a problem hiding this comment.
thanks for PR. rename s3_file -> s3_object for consistency
Contributor
Author
|
Done. (Based the original function name on the "write_s3_file" function but I agree "remove_s3_object" makes more sense) |
Contributor
|
sorry to be nitpicky but probably we want delete rather remove ? |
Contributor
Author
Haha no worries. Totally understand you wanna get stuff like this right. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for deleting files from S3 through the wmill python package. Pull request includes:
S3 File Deletion Feature:
remove_s3_filemethod to theWindmillclass inwmill/client.py, which permanently deletes a file from an S3 bucket. This method handles query parameters, error logging, and exception handling.Testing:
test_remove_s3_fileinwmill_client_test.pyto verify that files can be uploaded, deleted, and that deletion is confirmed by raising an exception when attempting to access the deleted file. The test is currently skipped as it requires a live Windmill instance with a configured storage backend.The implementation was manually validated against a live Windmill workspace (Azure Blob Storage backend) by running an equivalent inline script that exercises the same code path — upload, read-back, DELETE via
job_helpers/delete_s3_file, and confirmed 404 on subsequent load. The full local dev environment was not built.Script used for testing