def delete(self, id):
        """DELETE /mapfiles/id: Delete an existing mapfile owned by the current
        user. Deletion of the map entry in db and remove mapfile from filesystem. """
        map = self._delete_map_from_user_by_id(c.user, id)
        if map is None:
            abort(404)
        if os.path.exists(os.path.join(config['mapfiles_dir'], map.filepath)):
            os.unlink(os.path.join(config['mapfiles_dir'], map.filepath))

        response.status = 204
        # remove content-type from response headers so that webtest won't get confused
        # http://groups.google.com/group/pylons-discuss/browse_thread/thread/1267650386ae521b
        del response.headers['content-type'] 
        return
DELETE /mapfiles/id: Delete an existing mapfile owned by the current
        user. Deletion of the map entry in db and remove mapfile from filesystem.