get & delete attachment by id