Deleting a licence

Implementing deletion of licence. This pull request contains also the changes from #133