title: Delete file by name from S3 using boto
body: <p>I am trying to delete a file by name from a django project. I have a function that correctly uploads the file but I cannot figure out the functionality. I have tried to use a examples with get_key and other functionality but have yet to be able to fetch the correct key. I think I am misusing get_key or it is depreciated. The files I am trying to delete are .png files as well, text refers to my file name and location. Below is a code snippet </p>
  
  <pre><code>from boto.s3.connection import S3Connection, Bucket, Key
  from boto.s3.key import Key
  
  text = '//folder' + request.split(':')[1] + '_toS3.png'
  conn = S3Connection('###', '####')
  S3_BUCKET_NAME = 'Bucket_name'
  b = Bucket(conn, S3_BUCKET_NAME)
  k = Key(b)
  k.key = k.get_key(text)
  b.delete_key(k)
  </code></pre>