{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2318","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2318/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2318/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2318/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/2318","id":112419592,"number":2318,"title":"s3 - Delobj","user":{"login":"luhkevin","id":342515,"avatar_url":"https://avatars.githubusercontent.com/u/342515?v=3","gravatar_id":"","url":"https://api.github.com/users/luhkevin","html_url":"https://github.com/luhkevin","followers_url":"https://api.github.com/users/luhkevin/followers","following_url":"https://api.github.com/users/luhkevin/following{/other_user}","gists_url":"https://api.github.com/users/luhkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/luhkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luhkevin/subscriptions","organizations_url":"https://api.github.com/users/luhkevin/orgs","repos_url":"https://api.github.com/users/luhkevin/repos","events_url":"https://api.github.com/users/luhkevin/events{/privacy}","received_events_url":"https://api.github.com/users/luhkevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T17:29:38Z","updated_at":"2015-10-21T12:05:16Z","closed_at":null,"body":"I was told to post this issue to ansible-modules-core: \r\n\r\n\r\nThe documentation says that \"delobj\" is still a valid mode for the s3 module, but I just got this error:\r\n\r\nmsg: value of mode must be one of: get,put,delete,create,geturl,getstr, got: delobj\r\n\r\nI'm on ansible version 1.9.4\r\n\r\n\r\nI tried using the \"delete\" mode on a dummy-object...it deleted the entire bucket instead.\r\n\r\nIs there currently a way to delete objects? This is somewhat urgent if not...\r\n\r\nTo reproduce, I just had this in a playbook:\r\n\r\n`- name: Dummy delete`\r\n`  s3:    bucket=dummy-bucket object=\"/dummy_folder\"    mode=delete    aws_access_key=\"{{ lookup('env', 'AWS_ACCESS_KEY_ID') }}\"    aws_secret_key=\"{{ lookup('env', 'AWS_SECRET_ACCESS_KEY') }}\"``\r\n\r\n\r\nAnd like I said above, delobj didn't work. I used pretty much the same commands for that:\r\n\r\n`- name: Dummy delete`\r\n`  s3:    bucket=dummy-bucket object=\"/dummy_folder\"    mode=delobj    aws_access_key=\"{{ lookup('env', 'AWS_ACCESS_KEY_ID') }}\"    aws_secret_key=\"{{ lookup('env', 'AWS_SECRET_ACCESS_KEY') }}\"``\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/149869922","html_url":"https://github.com/ansible/ansible-modules-core/issues/2318#issuecomment-149869922","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2318","id":149869922,"user":{"login":"robynbergeron","id":3236604,"avatar_url":"https://avatars.githubusercontent.com/u/3236604?v=3","gravatar_id":"","url":"https://api.github.com/users/robynbergeron","html_url":"https://github.com/robynbergeron","followers_url":"https://api.github.com/users/robynbergeron/followers","following_url":"https://api.github.com/users/robynbergeron/following{/other_user}","gists_url":"https://api.github.com/users/robynbergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/robynbergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robynbergeron/subscriptions","organizations_url":"https://api.github.com/users/robynbergeron/orgs","repos_url":"https://api.github.com/users/robynbergeron/repos","events_url":"https://api.github.com/users/robynbergeron/events{/privacy}","received_events_url":"https://api.github.com/users/robynbergeron/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T12:05:16Z","updated_at":"2015-10-21T12:05:16Z","body":"Hi @luhkevin -- thanks for submitting this bug report / docs report. \r\n\r\n@sivel -- thanks for your feedback :)\r\n\r\n@lwade @ralph-tice -- thanks in advance for taking a look at this bug report and for your ongoing work in maintaining this module. Looks like this could be a quick fix. "}}