@@ -0,0 +1,1243 @@
+package seedu.address.logic.commands;%0A%0Aimport seedu.address.commons.core.Messages;%0Aimport seedu.address.commons.exceptions.IllegalValueException;%0Aimport seedu.address.model.task.EventTask;%0A%0Apublic class DeleteEventCommand extends Command %7B%0A%0A    public static final String COMMAND_WORD = %22del-event%22;%0A%0A    public static final String MESSAGE_USAGE = COMMAND_WORD%0A            + %22: Deletes the event identified by the index number used in the filtered event listing.%5Cn%22%0A            + %22Parameters: INDEX (must be a positive integer)%5Cn%22%0A            + %22Example: %22 + COMMAND_WORD + %22 1%22;%0A%0A    public static final String MESSAGE_DELETE_TASK_SUCCESS = %22Deleted event: %251$s%22;%0A%0A    public final int targetIndex;%0A%0A    public DeleteEventCommand(int targetIndex) %7B%0A        this.targetIndex = targetIndex;%0A    %7D%0A%0A    @Override%0A    public CommandResult execute() %7B%0A        try %7B%0A            final EventTask deletedTask = model.removeEventTask(targetIndex - 1);%0A            return new CommandResult(String.format(MESSAGE_DELETE_TASK_SUCCESS, deletedTask));%0A        %7D catch (IllegalValueException e) %7B%0A            indicateAttemptToExecuteIncorrectCommand();%0A            return new CommandResult(Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);%0A        %7D%0A    %7D%0A%0A%7D%0A

implement DeleteEventCommand