<human>: Can you give me a shortened version of the text?

I have a 4 year old Havanese that is house trained and has full reign of the house while we are at work. We let her out regularly and she is rarely by herself for more than four hours at a time. She seems to go through phases where she will poop(sometimes pee) on the carpet at least once a day. We let her out multiple times before we leave, but some days as soon as we leave she poops on the carpet. She usually does it on days that we ride our bikes to work so I sometimes wonder if she is spite pooping because we don't take her along. We've tried everything from praise to shame. We always clean up with an enzyme killer. Not sure what else to do! 

We are going to rip out the carpet that she likes to poop on and have the rest of the carpets professionally cleaned to hopefully remove any scents. She goes nuts when we lock her in a kennel and ripped off the door to her cloth kennel. If replacing the flooring doesn't help I think our next step will be to buy a hard kennel and try to re kennel train her. 

Looking for advice from the community! I appreciate any input!
<bot>: I believe my dog is pooping on the carpet out of spite / scents in the carpet when we leave her at home.