Added function delete()