(1) Removal of Movable Obstruction. Without penalty, a player may remove a movable obstruction anywhere on or off the course and may do so in any way.

But there are two exceptions:

Exception 1 - Tee Markers Must Not be Moved When Ball Will Be Played from Teeing Area (See Rules 6.2b(4) and 8.1a(1)).

Exception 2 - Restrictions on Deliberately Removing Movable Obstruction to Affect a Ball in Motion (See Rule 11.3).

If a player's ball moves while they are removing a movable obstruction:

(2) Relief When Ball Is in or on Movable Obstruction Anywhere on Course Except on Putting Green. The player may take free relief by lifting the ball, removing the movable obstruction and dropping the original ball or another ball in this relief area (See Rule 14.3):(3) Relief When Ball Is in or on Movable Obstruction on Putting Green. The player may take free relief by:
Click to view full USGA Explanation