[eluser]Colin Williams[/eluser]
base_url() will return the URI you set with $config['base_url']. There is very, very little chance that this is the appropriate relative path. Basically, unlink is getting passed a path it cannot resolve. You probably want to use APPPATH or FCPATH constants, which are system paths and not URIs.