Clear old effect before uploading new

Fixed a missing function declaration, and then added deleting of effect before uploading new one to make sure that also different kind of adaptation specific effects can work on top of the default ones.