Using the :dependent => :destroy option on the has_many association; this will ensure that, if a user is destroyed, all of the pictures that belong to them will also be destroyed.