Added returns to check if deletions succeeded, added /api prefix