DELETE&POST method refactored