var myCollection = new ymaps.GeoObjectCollection();
myMap.events.add('click', function (e) {
myCollection.removeAll();
var coords = e.get('coords');
var placeMark = new ymaps.Placemark(coords, {}, {
preset: 'islands#geolocationIcon',draggable:true,
});
myCollection.add(placeMark);
myMap.geoObjects.add(myCollection);
});