You can put expired flour in your compost bin for your gardening needs. Make sure, though, that it is not infested with weevils or bugs. If the flour has bugs, put the flour in the freezer for at least 24 hours before finally putting it on your compost bin.