adaption for error handling of delete methods