{"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":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/docs_report","name":"docs_report","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-20T17:29:38Z","updated_at":"2015-12-30T04:58:25Z","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/167936797","html_url":"https://github.com/ansible/ansible-modules-core/issues/2318#issuecomment-167936797","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2318","id":167936797,"user":{"login":"anthcourtney","id":1659971,"avatar_url":"https://avatars.githubusercontent.com/u/1659971?v=3","gravatar_id":"","url":"https://api.github.com/users/anthcourtney","html_url":"https://github.com/anthcourtney","followers_url":"https://api.github.com/users/anthcourtney/followers","following_url":"https://api.github.com/users/anthcourtney/following{/other_user}","gists_url":"https://api.github.com/users/anthcourtney/gists{/gist_id}","starred_url":"https://api.github.com/users/anthcourtney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthcourtney/subscriptions","organizations_url":"https://api.github.com/users/anthcourtney/orgs","repos_url":"https://api.github.com/users/anthcourtney/repos","events_url":"https://api.github.com/users/anthcourtney/events{/privacy}","received_events_url":"https://api.github.com/users/anthcourtney/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T04:58:25Z","updated_at":"2015-12-30T04:58:25Z","body":"I just hit this as well. Frustrating that it is not documented correctly."}}