fixed bug in delete (environment is a necessary parameter apart from the
version)